ServerTune

Browse by category

Search    |    Advanced search

How do I install Django with Apache2, mod_python3, and PostgreSQL

SSH to the server and run the following command:

Once Django and these pre-requisites are installed, you will need to create a Django project directory and then configure Apache to use the embedded Python interpreter to call your application for specific URLs on your site.

Example: Apache Configuration for Django/mod_python

<Location "/">
SetHandler python-program
PythonPath "['/local/path/to/your/django/packages/'] + sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonAutoReload On
PythonDebug On
</Location>
 
 
Add comment
 
Views: 1278
 
Votes: 0
 
Comments: 0
 

Other articles in this Category

RSS