Kaydet (Commit) 7ce6b10e authored tarafından Baptiste Mispelon's avatar Baptiste Mispelon Kaydeden (comit) Tim Graham

Fixed #25525 -- Added instructions about importing include() in urls.py

üst ca43ee9d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment