The recommended way of installing Django sites is to use mod_python. mod_python allows Apache to serve content much more quickly than CGI, but using it can create problems that are difficult to debug.
mod_python embeds the python interpreter in Apache and can share python interpreters between virtual hosts. This means that a misbehaving Python program can do much more damage than it could if it was running as a CGI script.
Tags: Django
Django comes with an amazingly powerful database API that does a very good job of hiding database-specific SQL. Sometimes, though, the API doesn't do exactly what you expect. I ran into this when developing the code that displays the “Tags” that have stories posted.
Fortunately, there is a fairly easy way to get down to the SQL and see what is happening when something goes wrong.
Tags: Django
On May 31 I gave a tutorial on the new site code for the Ottawa Canada Linux Users Group.
The new site is based on Django. It implements the logic for displaying upcoming and past events, tracking speakers, locations and images. It can also display announcements as part of the front page.
The slides from my tutorial and the source code at various stages are attached below.
After eight years as a static page with a bunch of links, excess.org has gone dynamic. I've used the Django web development framework and my own Templayer HTML templating library to update the site. I hope to use this page to announce updates to my projects and write occasionally about things I am working on.