Kaydet (Commit) 64262089 authored tarafından Paul McMillan's avatar Paul McMillan

Fixed #16910 -- Misleading regex in urlpatterns inclusion docs.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@16893 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 1631e13d
......@@ -465,8 +465,8 @@ directly the pattern list as returned by `patterns`_ instead. For example::
from django.conf.urls import patterns, url, include
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('',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment