[1.3.X] Fixed #16910 -- Misleading urlpatterns docs regex example.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16892 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e3bc259081
commit
a084a07ebe
|
@ -436,8 +436,8 @@ directly the pattern list as returned by `patterns`_ instead. For example::
|
|||
from django.conf.urls.defaults import *
|
||||
|
||||
extra_patterns = patterns('',
|
||||
url(r'reports/(?P<id>\d+)/$', 'credit.views.report', name='credit-reports'),
|
||||
url(r'charge/$', 'credit.views.charge', name='credit-charge'),
|
||||
url(r'^reports/(?P<id>\d+)/$', 'credit.views.report', name='credit-reports'),
|
||||
url(r'^charge/$', 'credit.views.charge', name='credit-charge'),
|
||||
)
|
||||
|
||||
urlpatterns = patterns('',
|
||||
|
|
Loading…
Reference in New Issue