3 site.addsitedir('$PYTHON_SITE')
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
17 '$APP_DIR/lib/librarian',
22 os.environ["CELERY_LOADER"] = "django"
23 os.environ['DJANGO_SETTINGS_MODULE'] = '$PROJECT_NAME.settings'
25 from django.core.handlers.wsgi import WSGIHandler
26 application = WSGIHandler()