X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e4176cee859a58a2986f4c3093318f47ade29356..baab092545bc665c1259488925af9213591ee310:/redakcja.wsgi.template diff --git a/redakcja.wsgi.template b/redakcja.wsgi.template deleted file mode 100644 index 2d10ac38..00000000 --- a/redakcja.wsgi.template +++ /dev/null @@ -1,26 +0,0 @@ -#!$PYTHON_BIN -import site -site.addsitedir('$PYTHON_SITE') - -import os -from os.path import abspath, dirname, join -import sys - -# Redirect sys.stdout to sys.stderr for bad libraries like geopy that use -# print statements for optional import exceptions. -sys.stdout = sys.stderr - -# Add apps and lib directories to PYTHONPATH -sys.path = [ - '$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 -application = WSGIHandler()