URL regular expressions in wrong order
|Reported by:||ginzor||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Either I have missed something completely or the following regular expressions are out of order. At least if I turn them around so the more specific turns up at the top the "fall through" and thereby the logic works properly for me.
http://docs.djangoproject.com/en/dev/intro/tutorial03/ several places
urlpatterns = patterns('', (r'^polls/$', 'mysite.polls.views.index'), (r'^polls/(?P<poll_id>\d+)/$', 'mysite.polls.views.detail'), (r'^polls/(?P<poll_id>\d+)/results/$', 'mysite.polls.views.results'), (r'^polls/(?P<poll_id>\d+)/vote/$', 'mysite.polls.views.vote'), )