开发者

Django Custom Template for GenericSitemap

开发者 https://www.devze.com 2023-03-25 07:23 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消