[Answered ]-Django “TypeError: list() got an unexpected keyword argument 'id''” error

2👍

Look at the route:

url(r'^(?P<id>[0-9]{1,3})$', views.list, name='detail'),

You are sending the detail url to the list view views.list instead of the detail view views.detail.

As an aside, it would be better to pick a different name for you list view since list shadows the built-in name list.

👤wim

Leave a comment