summaryrefslogtreecommitdiff
path: root/tests/sitemaps_tests/urls/https.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sitemaps_tests/urls/https.py')
-rw-r--r--tests/sitemaps_tests/urls/https.py7
1 files changed, 4 insertions, 3 deletions
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<section>.+)\.xml$', views.sitemap,
+ path('secure/index.xml', views.index, {'sitemaps': secure_sitemaps}),
+ path(
+ 'secure/sitemap-<section>.xml', views.sitemap,
{'sitemaps': secure_sitemaps},
name='django.contrib.sitemaps.views.sitemap'),
]