Search code examples
djangositemapurlconf

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_name but it doesn't use it

(r'^sitemap/$', 'django.contrib.sitemaps.views.sitemap',
{'sitemaps':sitemaps, 'template_name':'sitemap.xml'}),

any suggestions?


Solution

  • for some reason changing sitemap.xml to sitemap.html worked