From 8f2a6c76d19e4010c4683b20ed7f1eb4b07c17eb Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Thu, 26 Mar 2020 08:50:18 +0100 Subject: [PATCH] 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. --- docs/ref/contrib/flatpages.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/contrib/flatpages.txt b/docs/ref/contrib/flatpages.txt index ac3509c532..35eb4f9bc9 100644 --- a/docs/ref/contrib/flatpages.txt +++ b/docs/ref/contrib/flatpages.txt @@ -79,7 +79,7 @@ to place the pattern at the end of the other urlpatterns:: # Your other patterns here urlpatterns += [ - path('/', views.flatpage), + re_path(r'^(?P.*/)$', views.flatpage), ] .. warning::