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

Graphtools

  • 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
Topic revision: r2 - 11 Feb 2009, SuchandraThapa
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback