summaryrefslogtreecommitdiff
path: root/docs/intro
diff options
context:
space:
mode:
authorChiara Mezzavilla <2512470+samurang87@users.noreply.github.com>2024-10-09 16:46:26 +0200
committerNatalia <124304+nessita@users.noreply.github.com>2024-10-09 11:47:09 -0300
commitb852989c3073f6748412aac68cbd080c13d0e397 (patch)
treed07a3aed76f38b9b35e583d78fed636b4d0710a0 /docs/intro
parent13d352eb322a96119ac02817f7f403a8d70e18e9 (diff)
[5.1.x] Explained exception to using include() within urlpatterns in tutorial 1.
Backport of 40a60d589e1d0d290c3b79c7e97d9cd0c94e52e3 from main.
Diffstat (limited to 'docs/intro')
-rw-r--r--docs/intro/tutorial01.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt
index 59dc02df77..b840eb2660 100644
--- a/docs/intro/tutorial01.txt
+++ b/docs/intro/tutorial01.txt
@@ -290,7 +290,8 @@ app will still work.
.. admonition:: When to use :func:`~django.urls.include()`
You should always use ``include()`` when you include other URL patterns.
- ``admin.site.urls`` is the only exception to this.
+ The only exception is ``admin.site.urls``, which is a pre-built URLconf
+ provided by Django for the default admin site.
You have now wired an ``index`` view into the URLconf. Verify it's working with
the following command: