Added urlpatterns variable in docs/topics/http/urls.txt.
This commit is contained in:
parent
7d1b69dbe7
commit
91e9be45ed
|
@ -816,7 +816,9 @@ For example::
|
||||||
url(r'^(?P<pk>\d+)/$', views.DetailView.as_view(), name='detail'),
|
url(r'^(?P<pk>\d+)/$', views.DetailView.as_view(), name='detail'),
|
||||||
], 'polls')
|
], 'polls')
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
url(r'^polls/', include(polls_patterns)),
|
url(r'^polls/', include(polls_patterns)),
|
||||||
|
]
|
||||||
|
|
||||||
This will include the nominated URL patterns into the given application
|
This will include the nominated URL patterns into the given application
|
||||||
namespace.
|
namespace.
|
||||||
|
|
Loading…
Reference in New Issue