Django Custom Template for GenericSitemap
I have a generic sitemap working. I'm now looking to customize the output.
Im passing in the custom template开发者_JAVA百科_name but it doesn't use it
(r'^sitemap/$', 'django.contrib.sitemaps.views.sitemap',
{'sitemaps':sitemaps, 'template_name':'sitemap.xml'}),
any suggestions?
for some reason changing sitemap.xml to sitemap.html worked
精彩评论