From 043bd709425149b8eff3fb821cba5c23aaebd0df Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 7 Dec 2018 17:52:28 -0500 Subject: Updated test URL patterns to use path() and re_path(). --- tests/sitemaps_tests/urls/https.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/sitemaps_tests/urls/https.py') diff --git a/tests/sitemaps_tests/urls/https.py b/tests/sitemaps_tests/urls/https.py index 4f07d4759c..191fb5163e 100644 --- a/tests/sitemaps_tests/urls/https.py +++ b/tests/sitemaps_tests/urls/https.py @@ -1,5 +1,5 @@ -from django.conf.urls import url from django.contrib.sitemaps import views +from django.urls import path from .http import SimpleSitemap @@ -13,8 +13,9 @@ secure_sitemaps = { } urlpatterns = [ - url(r'^secure/index\.xml$', views.index, {'sitemaps': secure_sitemaps}), - url(r'^secure/sitemap-(?P
.+)\.xml$', views.sitemap, + path('secure/index.xml', views.index, {'sitemaps': secure_sitemaps}), + path( + 'secure/sitemap-
.xml', views.sitemap, {'sitemaps': secure_sitemaps}, name='django.contrib.sitemaps.views.sitemap'), ] -- cgit v1.3