[1.9.x] Added urlpatterns variable in docs/topics/http/urls.txt.
Backport of 91e9be45ed5ad3b0c3de8890a4fcdbb68836856f from master
This commit is contained in:
parent
e7087ac503
commit
d1ada8c93c
@ -830,7 +830,9 @@ For example::
|
||||
url(r'^(?P<pk>\d+)/$', views.DetailView.as_view(), name='detail'),
|
||||
], 'polls')
|
||||
|
||||
url(r'^polls/', include(polls_patterns)),
|
||||
urlpatterns = [
|
||||
url(r'^polls/', include(polls_patterns)),
|
||||
]
|
||||
|
||||
This will include the nominated URL patterns into the given application
|
||||
namespace.
|
||||
|
Loading…
x
Reference in New Issue
Block a user