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:40 -0400 |
| commit | 799fbc72355834b78a326881b134482042797a97 (patch) | |
| tree | b14254042cac8761612fe4b4ccc19460183d93d0 /docs | |
| parent | 69de988f9237fe978c5fca363ca2d2622f8e2ccd (diff) | |
[1.10.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 ae5b714726..6f2c7a47c1 100644 --- a/docs/topics/http/urls.txt +++ b/docs/topics/http/urls.txt @@ -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. |
