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:
parent
55cdf6c52d
commit
8f2a6c76d1
|
@ -79,7 +79,7 @@ to place the pattern at the end of the other urlpatterns::
|
||||||
|
|
||||||
# Your other patterns here
|
# Your other patterns here
|
||||||
urlpatterns += [
|
urlpatterns += [
|
||||||
path('<path:url>/', views.flatpage),
|
re_path(r'^(?P<url>.*/)$', views.flatpage),
|
||||||
]
|
]
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
|
|
Loading…
Reference in New Issue