[3.1.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 tod4dcd5b9dd
. Backport of5de12a369a
from main
This commit is contained in:
parent
7db9517a04
commit
0b8a0296bf
|
@ -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
|
if the groups are named, and as positional arguments otherwise. The values are
|
||||||
passed as strings, without any type conversion.
|
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
|
The ``view``, ``kwargs`` and ``name`` arguments are the same as for
|
||||||
:func:`~django.urls.path()`.
|
:func:`~django.urls.path()`.
|
||||||
|
|
||||||
|
.. versionchanged:: 2.2.25
|
||||||
|
|
||||||
|
In older versions, a full-match wasn't required for a ``route`` which ends
|
||||||
|
with ``$``.
|
||||||
|
|
||||||
``include()``
|
``include()``
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue