diff options
| author | Roy Smith <roy@panix.com> | 2020-01-24 06:21:04 -0500 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-01-24 12:22:51 +0100 |
| commit | 27739ad3f2b2f00b1af573b6dfb5ef9935562a58 (patch) | |
| tree | 00281dcaa48d38d97b7ce23e3411b57ebdbb4904 | |
| parent | ef22cf41af092d598208b4d373fe40403c2366dd (diff) | |
[3.0.x] Fixed #31184 -- Clarified URL matching behavior in URL dispatcher docs.
Backport of cf493e5c819f5ee49b96954f026bec722e19d9c3 from master
| -rw-r--r-- | docs/topics/http/urls.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt index ef9d4c007c..6c6a59b216 100644 --- a/docs/topics/http/urls.txt +++ b/docs/topics/http/urls.txt @@ -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 |
