Adding custom attributes to Django sitemaps framework

62 views
Skip to first unread message

Akshay Raj Gollahalli

unread,
Dec 27, 2016, 2:37:20 PM12/27/16
to Django developers (Contributions to Django itself)
Hi,

I am not sure if this has been discussed before or not. I think adding a custom attribute to sitemap template would a nice thing to do. 

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
Only that, but if I want to add xmlns:image I have to create a custom sitemap template. Rather than doing that, something like https://docs.djangoproject.com/en/1.10/ref/contrib/syndication/#custom-feed-generators by defining custom attributes.

Tim Graham

unread,
Dec 27, 2016, 4:06:45 PM12/27/16
to Django developers (Contributions to Django itself)
I don't have a lot of experience with sitemaps so at least for me, it would be nice to see some proposed code changes to understand the idea a bit better. From my naive point of view, it looks like you need  a custom template to output <image:image> anyway?
Reply all
Reply to author
Forward
0 new messages