Skip to content

Commit

Permalink
[1.9.x] Added urlpatterns variable in docs/topics/http/urls.txt.
Browse files Browse the repository at this point in the history
Backport of 91e9be4 from master
  • Loading branch information
treyhunner authored and timgraham committed Jun 18, 2016
1 parent e7087ac commit d1ada8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/topics/http/urls.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d1ada8c

Please sign in to comment.