开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜