mirror of
https://github.com/django/django.git
synced 2025-07-17 08:09:13 +00:00
[3.0.x] Fixed #31184 -- Clarified URL matching behavior in URL dispatcher docs.
Backport of cf493e5c819f5ee49b96954f026bec722e19d9c3 from master
This commit is contained in:
parent
ef22cf41af
commit
27739ad3f2
@ -45,7 +45,8 @@ algorithm the system follows to determine which Python code to execute:
|
||||
:func:`django.urls.path` and/or :func:`django.urls.re_path` instances.
|
||||
|
||||
#. Django runs through each URL pattern, in order, and stops at the first
|
||||
one that matches the requested URL.
|
||||
one that matches the requested URL, matching against
|
||||
:attr:`~django.http.HttpRequest.path_info`.
|
||||
|
||||
#. Once one of the URL patterns matches, Django imports and calls the given
|
||||
view, which is a Python function (or a :doc:`class-based view
|
||||
|
Loading…
x
Reference in New Issue
Block a user