Fixed #21137 -- Corrected ULRconf include example.

Thanks marfire for the report.
This commit is contained in:
Tim Graham 2013-09-24 09:41:12 -04:00
parent fd8d7db4d7
commit 77f6b468e5
1 changed files with 2 additions and 2 deletions

View File

@ -383,8 +383,8 @@ the suffixes that differ::
from django.conf.urls import include, patterns, url from django.conf.urls import include, patterns, url
urlpatterns = patterns('wiki.views', urlpatterns = patterns('',
url(r'^(?P<page_slug>\w+)-(?P<page_id>\w+)/', include(patterns('', url(r'^(?P<page_slug>\w+)-(?P<page_id>\w+)/', include(patterns('wiki.views',
url(r'^history/$', 'history'), url(r'^history/$', 'history'),
url(r'^edit/$', 'edit'), url(r'^edit/$', 'edit'),
url(r'^discuss/$', 'discuss'), url(r'^discuss/$', 'discuss'),