Django
Install
- You can install django by doing:
apt-get update
apt-get install python-django
}}
*Mod python should be installed. If installed skip to next section.
*Installing mod python on debian and apache2
{{{
apt-get update
apt-get install libapache2-mod-python- Module should be enabled, to check type:
a2enmod mod_python
- Done installing mod_python
Configure
- Now add this to your httpd.conf
<Location "/mysite/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonDebug On
</Location>- This tells apache that www.example.com/mysite will be useing django.
mysite.settings will need to be changed to your app settings, but we will do it later.