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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -