mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #31330 -- Corrected catchall URL pattern in flatpages docs.
Use re_path() pattern with the regex used before original regression indf41b5a05d. Regression ina0916d7212.
This commit is contained in:
@@ -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::
|
||||
|
||||
Reference in New Issue
Block a user