InstallConfigDjango
Overview
This page describes the installation and configuration of the Django web framework.
Installation (initial)
- Installed following direction from this page
- Installed postgresql using yum
- Installed mod_python using yum
- Grabbed copy of django from cvs repository
- Installed django files to /usr/local/django
- Modified /etc/httpd/conf/httpd.conf to include files in /var/www/html/django in section for webroot
# Added for django ST
PythonPath "['/var/www/html/django/'] + ['/var/www/html/django/jobmonitor/'] + sys.path"
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE jobmonitor.settings
PythonDebug On
# SetHandler None
- Ran manage script in /var/www/html/django to register jobmonitor project
- Installed using yum from the unl repository
- Installed PIL, mathplotlib, and numpy using lib for dependencies
- Installed graphtools using yum afterwards
Testing
Questions
- Can we setup multiple django "sites" with the same server instance?
- How can we address the "slowness" of the server?
--
RobGardner - 17 Dec 2008