X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7583035c199c378c8d019937d155992709536b91..0dff76ecd927e5be83d8a6076f84c87c5dea4a4c:/wolnelektury.wsgi.template?ds=sidebyside diff --git a/wolnelektury.wsgi.template b/wolnelektury.wsgi.template deleted file mode 100644 index 033bab12a..000000000 --- a/wolnelektury.wsgi.template +++ /dev/null @@ -1,27 +0,0 @@ -#!%(python)s -import site -site.addsitedir('%(path)s/ve/lib/python2.6/site-packages') - -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 = [ - '%(path)s/releases/current/%(project_name)s', - '%(path)s/releases/current', - '%(path)s/releases/current/apps', - '%(path)s/releases/current/lib', - '%(path)s/releases/current/lib/librarian', -] + sys.path - -# Run Django -os.environ["CELERY_LOADER"] = "django" -os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' - -from django.core.handlers.wsgi import WSGIHandler -application = WSGIHandler()