forked from sorrison/django-pbs
-
Notifications
You must be signed in to change notification settings - Fork 8
Installation
Brian May edited this page May 9, 2013
·
5 revisions
- Django >= 1.0 and its prerequisites http://docs.djangoproject.com/en/dev/intro/install/#intro-install
- django_common https://trac.vpac.org/django_common
- python-pbs >= 3.0.0 https://subtrac.sara.nl/oss/svn/pbs_python/tags/3.0.0/
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
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>