django1/django/contrib/sitemaps/tests/urls/https.py

18 lines
409 B
Python
Raw Normal View History

from django.conf.urls import patterns
from .http import SimpleSitemap
2013-11-03 04:12:09 +08:00
class HTTPSSitemap(SimpleSitemap):
protocol = 'https'
secure_sitemaps = {
'simple': HTTPSSitemap,
}
urlpatterns = patterns('django.contrib.sitemaps.views',
(r'^secure/index\.xml$', 'index', {'sitemaps': secure_sitemaps}),
(r'^secure/sitemap-(?P<section>.+)\.xml$', 'sitemap',
{'sitemaps': secure_sitemaps}),
)