Commit 179fbab7 authored by Tim Graham's avatar Tim Graham
Browse files

Fixed #25711 -- Updated the project template's include() example.

Referencing URLs by dotted path is a stronger convention than
importing the URLs.
parent 542b7f6c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -10,9 +10,8 @@ Class-based views
    1. Add an import:  from other_app.views import Home
    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. Import the include() function: from django.conf.urls import url, include
    3. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin