2👍
✅
You are missing the named capturing group for the uri
:
url(r'^subcategory/new/(?P<pk>\d+)/(?P<uri>\S+)/$',item.views.subcategory_new, name="subcategory_new"),
And, I’ve also replaced \s+
with \S+
since I doubt you actuall want to capture one or more space characters.
Source:stackexchange.com