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 # Add apps and lib directories to PYTHONPATH
15 '%(path)s/releases/current',
16 '%(path)s/releases/current/apps',
17 '%(path)s/releases/current/lib',
18 '%(sandbox)s/etc/%(project_name)s,
22 os.environ['DJANGO_SETTINGS_MODULE'] = '%(project_name)s.settings'
24 from django.core.handlers.wsgi import WSGIHandler
25 application = WSGIHandler()