django - Type error: unexpected keyword argument -
i receiving following error message whenever try load item page
typeerror @ /item/103/
itemprofile() got unexpected keyword argument 'item_id'
the following urls.py
urlpatterns = patterns('', #item urls ... url(r'^item/(?p<item_id>\d+)/$', views.itemprofile, name='itemprofile')
your regex on url fine. add argument item_id
view function , should work:
def itemprofile(request, item_id): # view codes
Comments
Post a Comment