1
0
mirror of https://github.com/django/django.git synced 2025-01-18 06:12:23 +00:00

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
482 B
Python
Raw Normal View History

from django.contrib.sitemaps import views
from django.urls import path
from .http import SimpleSitemap
2013-11-02 13:12:09 -07:00
class HTTPSSitemap(SimpleSitemap):
protocol = "https"
2016-11-12 20:41:23 +03:30
secure_sitemaps = {
"simple": HTTPSSitemap,
}
urlpatterns = [
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",
),
]