1
0
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:
Trey Hunner 2016-06-17 18:01:43 -07:00 committed by Tim Graham
parent e7087ac503
commit d1ada8c93c

View File

@ -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.