Hello everyone,
I have some doubts regarding sitemap.xml generation and Django's sitemap framework particularly.
Let's say I have a blog application which has post_detail pages with each post's content and a bunch of 'helper' pages like 'view by tag', 'view by author', etc.
- Is it mandatory to include each and every page in sitemap.xml, including 'helper' pages? I want all of 'helper' pages indexed as there are many keywords and text. I know that sitemaps are designed to help index pages, to give some directions to web-crawler, but not to limit crawling. What is the best practice for that? Include everything or include only important pages?
- If it's okay to have all of the pages in sitemap.xml, what is the best way to submit plain, not-stored in db pages to sitemaps framework? One possible way is to have a sitemap class which returns reversed urls by url name. But it doesn't seem to be DRY at all, because I'll gonna need to register those url-names for the second time (in url() function and in Sitemap class).
I could probably have a custom django.conf.urls.defaults.url function to register url-mapping for the sitemap... What do you think?
Thank you.