using one url would be:
url(r'''^narrow_category/(?P\d+)/(?P\w*)'''
r'(?:\/(?P\d+))?'
r'(?:\/(?P\d+))?'
r'(?:\/(?P\d+))?$',
'catalog.views.narrow_category', name="narrow_category"),
second_digit, third_digit and fourth_digit parameters would be optional,
and your view would look
NoReverseMatch: Reverse for 'narrow_category' with arguments '(9L, u'pro
contact', u'', u'', u'')' and keyword arguments '{}' not found.
url(r'^narrow_category/(\d+)/(\w*)/(\d*)/(\d*)/(\d*)/$',
'catalog.views.narrow_category', name="narrow_category"),
url(r'^narrow_category/(\d+)/(\w+)/$',
2 matches
Mail list logo