mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
[5.1.x] Explained exception to using include() within urlpatterns in tutorial 1.
Backport of 40a60d589e
from main.
This commit is contained in:
parent
13d352eb32
commit
b852989c30
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue