Check if Apache and mod_python are installed

apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-python python-mysqldb mysql-client

Django 1.1 is required for django-cms and only available as a backport-package. Added backports to 'sources.list'.

apt-get -t lenny-backports install python-django 

Install/modify apache according to howtoforge.com and debian-administration.org.

Modify /etc/mysql/my.cnf /etc/init.d/mysql restart

check if networking is enabled

netstat -tap | grep mysql 

Create a folder for a testproject

/usr/share/python-support/python-django/django/bin/django-admin.py startproject testsite

To check the django installation (without Apache):

python manage.py runserver 0.0.0.0:8000

Then you can call Django on

http://epubtk.openresearch.eu:8000/

Apache has to be configured:

vim /etc/apache2/httpd.conf
Alias /media/ /home/django/lrn/media/

<Directory /home/django/lrn/media>
Order deny,allow
Allow from all
</Directory>

WSGIScriptAlias / /home/django/lrn/apache/django.wsgi

<Directory /home/django/lrn/apache>
Order deny,allow
Allow from all
</Directory>

This makes the django project /home/django/lrn available at http://epubtk.openresearch.eu. The admin interface is located at http://epubtk.openresearch.eu/admin

... ...to be continued... ...

After all:

/etc/init.d/apache2 restart