Skip to content

Commit

Permalink
[1.9.x] Fixed #25525 -- Added instructions about importing include() …
Browse files Browse the repository at this point in the history
…in urls.py

Backport of 7ce6b10 from master
  • Loading branch information
bmispelon authored and timgraham committed Oct 7, 2015
1 parent c894f21 commit 8a98725
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django/conf/project_template/project_name/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
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
Expand Down

0 comments on commit 8a98725

Please sign in to comment.