source: trunk/sara_cmt/sara_cmt/apache/django.wsgi @ 12793

Last change on this file since 12793 was 12793, checked in by sil, 13 years ago

changed PROJECTPATH to static path

File size: 539 bytes
Line 
1import os, sys
2
3# Append django-libs and directory which holds the sara_cmt project
4sys.path.append('/var/lib/python-support/python%s/django'%sys.version[:3])
5
6# Append SARA CMT specific paths
7PROJECTPATH = os.path.normpath('/opt/sara_cmt')
8
9sys.path.append(PROJECTPATH)
10sys.path.append(os.path.join(PROJECTPATH,'site-packages')) # should be a symbolic link to (non-global) site-packages
11
12
13os.environ['DJANGO_SETTINGS_MODULE'] = 'sara_cmt.settings'
14
15import django.core.handlers.wsgi
16
17application = django.core.handlers.wsgi.WSGIHandler()
18
Note: See TracBrowser for help on using the repository browser.