diff options
| author | Trey Hunner <trey@treyhunner.com> | 2016-06-17 18:01:43 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-06-17 21:02:45 -0400 |
| commit | d1ada8c93cf29ef8fc25bf2a6654ebe070156e1c (patch) | |
| tree | 5bd1c3e6766c61dae3ac4ca3a96fd790f872653c /docs | |
| parent | e7087ac5039eedbca132d7a293ece08d84f929e6 (diff) | |
[1.9.x] Added urlpatterns variable in docs/topics/http/urls.txt.
Backport of 91e9be45ed5ad3b0c3de8890a4fcdbb68836856f from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/http/urls.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt index 0cfcf14049..d675b36b5f 100644 --- a/docs/topics/http/urls.txt +++ b/docs/topics/http/urls.txt @@ -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. |
