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::