1
0
mirror of https://github.com/django/django.git synced 2025-01-18 22:33:44 +00:00

Fixed #31330 -- Corrected catchall URL pattern in flatpages docs.

Use re_path() pattern with the regex used before original regression in
df41b5a05d4e00e80e73afe629072e37873e767a.
Regression in a0916d7212aaae634f4388d47d8717abc2cd9036.
This commit is contained in:
Carlton Gibson 2020-03-26 08:50:18 +01:00
parent 55cdf6c52d
commit 8f2a6c76d1

View File

@ -79,7 +79,7 @@ to place the pattern at the end of the other urlpatterns::
# Your other patterns here
urlpatterns += [
path('<path:url>/', views.flatpage),
re_path(r'^(?P<url>.*/)$', views.flatpage),
]
.. warning::