2
These URL patterns are included in two different ways in the main urls.py, with
3
an extra argument present in one case. Thus, there are two different ways for
4
each name to resolve and Django must distinguish the possibilities based on the
8
from django.conf.urls.defaults import *
9
from views import empty_view
11
urlpatterns = patterns('',
12
url(r'^part/(?P<value>\w+)/$', empty_view, name="part"),
13
url(r'^part2/(?:(?P<value>\w+)/)?$', empty_view, name="part2"),