1
0
mirror of https://github.com/django/django.git synced 2025-04-01 03:56:42 +00:00

[1.10.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 69de988f92
commit 799fbc7235

View File

@ -822,7 +822,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.