Keywords: Django, python, mod_python, web, framwork, easy, step by step, first instalation, app, aplication in python

Django

Install

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

a2enmod mod_python

Configure

<Location "/mysite/">
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        SetEnv DJANGO_SETTINGS_MODULE mysite.settings
        PythonDebug On
</Location>

MyWiki: DjangoWebFramework (last edited 2009-09-06 02:49:41 by localhost)