3 site.addsitedir('%(path)s/lib/python2.5/site-packages')
6 from os.path import abspath, dirname, join
9 # Redirect sys.stdout to sys.stderr for bad libraries like geopy that use
10 # print statements for optional import exceptions.
11 sys.stdout = sys.stderr
13 # we don't want these packages to cover our virtualenv
14 sys.path = [p for p in sys.path if not p.startswith('/usr/lib/python2.5/site-packages') and not p.startswith('/var/lib/python-support/python2.5')]
16 # Add apps and lib directories to PYTHONPATH
18 '%(path)s/releases/current/%(project_name)s',
19 '%(path)s/releases/current',
20 '%(path)s/releases/current/apps',
21 '%(path)s/releases/current/lib',
22 '%(path)s/releases/current/lib/librarian',
26 os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
28 from django.core.handlers.wsgi import WSGIHandler
29 application = WSGIHandler()