diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-12-15 18:54:02 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-12-15 18:56:38 +0100 |
| commit | b87820668e7bd519dbc05f6ee46f551858fb1d6d (patch) | |
| tree | 7b10c278c52c93d774cced57d3319194e9af2a90 | |
| parent | 573e70ea48f11a09a27e3380a4612655b61500e2 (diff) | |
[2.2.x] Refs #33365, Refs #30530 -- Doc'd re_path() behavior change in Django 2.2.25, 3.1.14, and 3.2.10.
Follow up to d4dcd5b9dd9e462fec8220e33e3e6c822b7e88a6.
Backport of 5de12a369a7b2231e668e0460c551c504718dbf6 from main
| -rw-r--r-- | docs/ref/urls.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/ref/urls.txt b/docs/ref/urls.txt index 1527a34720..36bc1a7de0 100644 --- a/docs/ref/urls.txt +++ b/docs/ref/urls.txt @@ -72,9 +72,18 @@ groups from the regular expression are passed to the view -- as named arguments if the groups are named, and as positional arguments otherwise. The values are passed as strings, without any type conversion. +When a ``route`` ends with ``$`` the whole requested URL, matching against +:attr:`~django.http.HttpRequest.path_info`, must match the regular expression +pattern (:py:func:`re.fullmatch` is used). + The ``view``, ``kwargs`` and ``name`` arguments are the same as for :func:`~django.urls.path()`. +.. versionchanged:: 2.2.25 + + In older versions, a full-match wasn't required for a ``route`` which ends + with ``$``. + ``include()`` ============= |
