mirror of
https://github.com/django/django.git
synced 2025-08-21 11:10:38 +00:00
[1.9.x] Added urlpatterns variable in docs/topics/http/urls.txt.
Backport of 91e9be45ed
from master
This commit is contained in:
parent
e7087ac503
commit
d1ada8c93c
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue