From 91e9be45ed5ad3b0c3de8890a4fcdbb68836856f Mon Sep 17 00:00:00 2001 From: Trey Hunner Date: Fri, 17 Jun 2016 18:01:43 -0700 Subject: [PATCH] Added urlpatterns variable in docs/topics/http/urls.txt. --- docs/topics/http/urls.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt index f6a83bffa7..59b3b698f1 100644 --- a/docs/topics/http/urls.txt +++ b/docs/topics/http/urls.txt @@ -816,7 +816,9 @@ For example:: url(r'^(?P\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.