2014-04-02 00:46:34 +00:00
|
|
|
from django.conf.urls import url
|
|
|
|
from django.contrib.sitemaps import views
|
2012-01-29 19:24:32 +00:00
|
|
|
|
|
|
|
from .http import SimpleSitemap
|
|
|
|
|
2013-11-02 20:12:09 +00:00
|
|
|
|
2012-01-29 19:24:32 +00:00
|
|
|
class HTTPSSitemap(SimpleSitemap):
|
|
|
|
protocol = 'https'
|
|
|
|
|
|
|
|
secure_sitemaps = {
|
|
|
|
'simple': HTTPSSitemap,
|
|
|
|
}
|
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
urlpatterns = [
|
|
|
|
url(r'^secure/index\.xml$', views.index, {'sitemaps': secure_sitemaps}),
|
|
|
|
url(r'^secure/sitemap-(?P<section>.+)\.xml$', views.sitemap,
|
2014-09-18 22:40:51 +00:00
|
|
|
{'sitemaps': secure_sitemaps},
|
|
|
|
name='django.contrib.sitemaps.views.sitemap'),
|
2014-04-02 00:46:34 +00:00
|
|
|
]
|