-#!%(python)s
+#!$PYTHON
import site
-site.addsitedir('%(path)s/lib/python2.5/site-packages')
+site.addsitedir('$PYTHON_SITE')
import os
from os.path import abspath, dirname, join
# Add apps and lib directories to PYTHONPATH
sys.path = [
- '%(path)s/releases/current/%(project_name)s',
- '%(path)s/releases/current/provider',
- '%(path)s/releases/current',
+ '$PROJECT_ROOT/src',
+ '$PROJECT_ROOT/provider',
] + sys.path
# Run Django
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
+os.environ['DJANGO_SETTINGS_MODULE'] = '$PROJECT_NAME.settings'
from django.core.handlers.wsgi import WSGIHandler
application = WSGIHandler()