diff options
| author | Chiara Mezzavilla <2512470+samurang87@users.noreply.github.com> | 2024-10-09 16:46:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-09 11:46:26 -0300 |
| commit | 40a60d589e1d0d290c3b79c7e97d9cd0c94e52e3 (patch) | |
| tree | 814934b7bd84c7023d43a41ea7ab43047a2937c8 /docs/intro/tutorial01.txt | |
| parent | d4e4520efb553d2bfcc68ac8cf007c0c402d4845 (diff) | |
Explained exception to using include() within urlpatterns in tutorial 1.
Diffstat (limited to 'docs/intro/tutorial01.txt')
| -rw-r--r-- | docs/intro/tutorial01.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt index 041da0a404..c5ac5a1107 100644 --- a/docs/intro/tutorial01.txt +++ b/docs/intro/tutorial01.txt @@ -293,7 +293,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: |
