1
0
mirror of https://github.com/django/django.git synced 2025-03-14 03:10:45 +00:00

[1.9.x] Fixed #25525 -- Added instructions about importing include() in urls.py

Backport of 7ce6b10e9464995a038289e00169ffa85d29e3a5 from master
This commit is contained in:
Baptiste Mispelon 2015-10-07 17:01:19 -04:00 committed by Tim Graham
parent c894f215e2
commit 8a9872543c

View File

@ -11,7 +11,8 @@ Class-based views
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
Including another URLconf
1. Add an import: from blog import urls as blog_urls
2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls))
2. Import the include() function: from django.conf.urls import url, include
3. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import url
from django.contrib import admin