New: Google sitemap generator

Posted by Adrian Holovaty on August 31, 2006

Thanks to an awesome contribution from Dan Watson, we've added a Google sitemap generator to django.contrib in the Django development version.

A sitemap is an XML file on your Web site that tells search-engine indexers how frequently your pages change and how "important" certain pages are in relation to other pages on your site. This information helps search engines index your site. The Django sitemap framework automates the creation of this XML file by letting you express this information in Python code.

In the grand Django tradition, it's simple yet powerful and flexible. Just write a Python class and hook it into your URLconf, and voila: You've got a sitemap. This was so easy to do that we set up a sitemap for It's something we probably never would've done otherwise, but it was so easy to do that we figured we might as well. I suspect others will follow the same path.

Full documentation is available. Those of you familiar with Django's syndication framework will feel right at home.

Back to Top