summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorCarlton Gibson <carlton.gibson@noumenal.es>2020-03-26 08:50:18 +0100
committerCarlton Gibson <carlton.gibson@noumenal.es>2020-03-26 09:18:45 +0100
commit3bb1e6c5048f6d8cc6c9bd373799e08955c8aac0 (patch)
tree84214094f0ffc6cd10bd2374e9eb7132827f23a3 /docs
parent2306f8c9bb2bc9539cfe77e38affc01b09f0bfb4 (diff)
[3.0.x] 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. Backport of 8f2a6c76d19e4010c4683b20ed7f1eb4b07c17eb from master
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::