X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f938afb8ab4cb091d12e0ef0311eaea14b774798..210e62452e0e9f26f3e006c874b66ac44005d492:/redakcja.wsgi.template diff --git a/redakcja.wsgi.template b/redakcja.wsgi.template index 6b772f34..2d10ac38 100644 --- a/redakcja.wsgi.template +++ b/redakcja.wsgi.template @@ -1,4 +1,4 @@ -#!$PYTHON +#!$PYTHON_BIN import site site.addsitedir('$PYTHON_SITE') @@ -12,12 +12,14 @@ sys.stdout = sys.stderr # Add apps and lib directories to PYTHONPATH sys.path = [ - '$PROJECT_ROOT', - '$PROJECT_ROOT/lib', - '$PROJECT_ROOT/apps', + '$APP_DIR', + '$APP_DIR/lib', + '$APP_DIR/lib/librarian', + '$APP_DIR/apps', ] + sys.path # Run Django +os.environ["CELERY_LOADER"] = "django" os.environ['DJANGO_SETTINGS_MODULE'] = '$PROJECT_NAME.settings' from django.core.handlers.wsgi import WSGIHandler