Commit b37cb0b9 authored by Marten Kenbeek's avatar Marten Kenbeek Committed by Tim Graham
Browse files

[1.9.x] Refs #21927 -- Added note about include() to tutorial.

Backport of 6687f4dc from master
parent 406acd66
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -298,6 +298,11 @@ an :func:`~django.conf.urls.include` in the ``urlpatterns`` list, so you have:
        url(r'^admin/', admin.site.urls),
    ]

.. admonition:: When to use :func:`~django.conf.urls.include()`

    You should always use ``include()`` when you include other URL patterns.
    ``admin.site.urls`` is the only exception to this.

.. admonition:: Doesn't match what you see?

    If you're seeing ``include(admin.site.urls)`` instead of just