From: zuber Date: Thu, 5 Nov 2009 12:31:37 +0000 (+0100) Subject: Usunięcie niepotrzebnego już pliku platforma/dispatch.wsgi. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/dbfc1841d5b6849463d527772781a3ba586fefa0?ds=inline;hp=-c Usunięcie niepotrzebnego już pliku platforma/dispatch.wsgi. --- dbfc1841d5b6849463d527772781a3ba586fefa0 diff --git a/platforma/dispatch.wsgi b/platforma/dispatch.wsgi deleted file mode 100755 index 5724b23c..00000000 --- a/platforma/dispatch.wsgi +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env python -import os -from os import path -import sys - -PROJECT_ROOT = path.realpath(path.dirname(__file__)) - -# 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.insert(0, path.join(PROJECT_ROOT, '../apps')) -sys.path.insert(0, path.join(PROJECT_ROOT, '../lib')) - -# Emulate manage.py path hacking. -sys.path.insert(0, path.join(PROJECT_ROOT, "..")) -sys.path.insert(0, PROJECT_ROOT) - -# Run Django -os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' - -from django.core.handlers.wsgi import WSGIHandler -application = WSGIHandler() -