mirror of
https://github.com/django/django.git
synced 2025-07-19 09:09:13 +00:00
[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'),
|
url(r'^(?P<pk>\d+)/$', views.DetailView.as_view(), name='detail'),
|
||||||
], 'polls')
|
], 'polls')
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
url(r'^polls/', include(polls_patterns)),
|
url(r'^polls/', include(polls_patterns)),
|
||||||
|
]
|
||||||
|
|
||||||
This will include the nominated URL patterns into the given application
|
This will include the nominated URL patterns into the given application
|
||||||
namespace.
|
namespace.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user