From 8c306910dd86e09cea11196715da47c6a54c722b Mon Sep 17 00:00:00 2001 From: Storm Heg Date: Fri, 21 Feb 2020 13:35:53 +0000 Subject: [PATCH] Fix incorrect urls in the docs --- docs/advanced_topics/amp.rst | 2 +- docs/advanced_topics/images/image_serve_view.rst | 2 +- docs/reference/contrib/sitemaps.rst | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/advanced_topics/amp.rst b/docs/advanced_topics/amp.rst index 082bad30ca..8701d5c3a1 100644 --- a/docs/advanced_topics/amp.rst +++ b/docs/advanced_topics/amp.rst @@ -163,7 +163,7 @@ file for the ``/amp`` prefix: # Change this line to point at your amp_urls instead of Wagtail's urls path('amp/', include(wagtail_amp_urls)), - path('', include(wagtail_urls)), + re_path(r'', include(wagtail_urls)), ] After this, there shouldn't be any noticeable difference to the AMP version of diff --git a/docs/advanced_topics/images/image_serve_view.rst b/docs/advanced_topics/images/image_serve_view.rst index 9c0c7e7124..f1971b32d3 100644 --- a/docs/advanced_topics/images/image_serve_view.rst +++ b/docs/advanced_topics/images/image_serve_view.rst @@ -33,7 +33,7 @@ Add an entry for the view into your URLs configuration: ... # Ensure that the wagtailimages_serve line appears above the default Wagtail page serving route - path('', include(wagtail_urls)), + re_path(r'', include(wagtail_urls)), ] Usage diff --git a/docs/reference/contrib/sitemaps.rst b/docs/reference/contrib/sitemaps.rst index c031b808ae..2b4131634c 100644 --- a/docs/reference/contrib/sitemaps.rst +++ b/docs/reference/contrib/sitemaps.rst @@ -52,7 +52,7 @@ sitemap: ... # Ensure that the 'sitemap' line appears above the default Wagtail page serving route - path('', include(wagtail_urls)), + re_path(r'', include(wagtail_urls)), ]