Reputation: 1913
How to resolve this ambigious rules conflict:
url(r'^help/(?P<page>\w+)/$', 'ecc.views.help_page', name='help_page'),
url(r'^help/search/?$', 'ecc.views.help_search', name='help_search'),
When I go to: site.com/help/search, from the Django's point of view, I go to help/page. How to set the priority on this rule?
Upvotes: 0
Views: 837
Reputation: 80011
The order gives the initial priority, so just put the help/search/
rule above the other one and it will work.
Upvotes: 4