diff options
| author | Marten Kenbeek <marten.knbk@gmail.com> | 2015-12-30 17:13:58 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-31 08:17:19 -0500 |
| commit | 6687f4dcbbfeca81b76233609fca90f30ce4dd25 (patch) | |
| tree | 1592f97fc9254e7f811c231b1b441434d1e3695e /docs/intro/tutorial01.txt | |
| parent | 00cb9e13b4cf06ed2be27ee9e7fc18969ae69f7d (diff) | |
Refs #21927 -- Added note about include() to tutorial.
Diffstat (limited to 'docs/intro/tutorial01.txt')
| -rw-r--r-- | docs/intro/tutorial01.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt index 7255f2b3ee..0bdc593ec9 100644 --- a/docs/intro/tutorial01.txt +++ b/docs/intro/tutorial01.txt @@ -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 |
