1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Added urlpatterns variable in docs/topics/http/urls.txt.

This commit is contained in:
Trey Hunner 2016-06-17 18:01:43 -07:00 committed by Tim Graham
parent 7d1b69dbe7
commit 91e9be45ed

View File

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