Weblog

New: Google sitemap generator

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 djangoproject.com. 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.

Posted by Adrian Holovaty on August 31, 2006

Comments

George September 13, 2006 at 4:56 p.m.

Is it possible to use Django with Psyco?

I realize that Python/Django is already very fast, but if I could use Psyco to increase the responsiveness even more ... that's great.

What would be great is to use Django, Lighttpd, flup http://manuals.textdrive.com/read/cha...

with Psyco.

If anyone knows if this is possible, please let me know.

Thanks in advnace

George September 13, 2006 at 5:07 p.m.

In addition to my question above about Psyco support with Django, I would like to ask one more.

2. Does Django create "prepared statements" to increase performance? And even better, can Django support "stored procedures".

I ask since many time the database is the bottle neck.

Roland September 14, 2006 at 3:58 a.m.

@George:
Your questions would be better asked in the mailing list.
Also please keep your comments in relation to the subject of the post.

Alec September 15, 2006 at 9:13 a.m.

This is really awesome. I had a sitemap generated with less than an hour of work. Thanks - as you said it was pretty easy to do.

Comments are closed

To prevent spam, comments are no longer allowed after sixty days.