summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/flatpages.txt2
1 files changed, 1 insertions, 1 deletions
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('<path:url>/', views.flatpage),
+ re_path(r'^(?P<url>.*/)$', views.flatpage),
]
.. warning::