X-Git-Url: https://git.mdrn.pl/cas.git/blobdiff_plain/e236585868829946444ac537adbbf481782ecb8f..365c9945fa3f8ea131251c8a59db4703656bf3dd:/cas.wsgi.template?ds=inline diff --git a/cas.wsgi.template b/cas.wsgi.template index 2124c1e..d8c87da 100644 --- a/cas.wsgi.template +++ b/cas.wsgi.template @@ -1,6 +1,6 @@ -#!%(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 @@ -12,13 +12,12 @@ sys.stdout = sys.stderr # 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()