Skip to content

Installation

Brian May edited this page May 9, 2013 · 5 revisions

= Installation =

== Prerequisites ==

== Installation ==

Check out code from svn

svn co https://svn.vpac.org/django-pbs/tags/1.2/ django-pbs
cd django-pbs
python setup.py install

This will install django_pbs into something like /usr/lib/python2.5/site-packages/django_pbs

== Configuration ==

You will need to edit settings.py and change some variables, most options should be able to be left as default. You should only need to change the following

DEBUG
ADMINS
LOCAL_PBS_SERVERS
TIME_ZONE
LANGUAGE_CODE

Sample Apache config

<Location "/djangopbs">
    SetHandler mod_python
    PythonHandler django.core.handlers.modpython
    PythonOption django.root /djangopbs
    SetEnv DJANGO_SETTINGS_MODULE django_pbs.settings
    PythonInterpreter djangopbs
    PythonDebug Off
</Location>


Alias /pbs_media "/path/to/django/pbs/media"

<Location "/pbs_media">
    SetHandler None
</Location>

<Directory /path/to/django/pbs/media>
    AllowOverride None
    Order deny,allow
    Allow from all
</Directory>
Clone this wiki locally