2012-01-30 03:24:32 +08:00
|
|
|
from django.conf.urls import patterns
|
|
|
|
|
|
|
|
from .http import SimpleSitemap
|
|
|
|
|
2013-11-03 04:12:09 +08:00
|
|
|
|
2012-01-30 03:24:32 +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}),
|
|
|
|
)
|