summaryrefslogtreecommitdiff
path: root/tests/sitemaps_tests/urls/https.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-12-07 17:52:28 -0500
committerTim Graham <timograham@gmail.com>2018-12-31 10:47:32 -0500
commit043bd709425149b8eff3fb821cba5c23aaebd0df (patch)
tree7624be405a6a6e5a041e2852251ef76e9d28fa7d /tests/sitemaps_tests/urls/https.py
parent1136d57f01ce3e3efab44163ccd7b3b34ec4207f (diff)
Updated test URL patterns to use path() and re_path().
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'),
]