X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9f57f525425707a7c9445c07f00371f17128f44c..57b7dbdead87b83ebc630a1ea70b9ada08599f5b:/wolnelektury/wolnelektury.fcgi diff --git a/wolnelektury/wolnelektury.fcgi b/wolnelektury/wolnelektury.fcgi deleted file mode 100644 index 51157583e..000000000 --- a/wolnelektury/wolnelektury.fcgi +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python -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.insert(0, abspath(join(dirname(__file__), '../apps'))) -sys.path.insert(0, abspath(join(dirname(__file__), '../lib'))) - -# Emulate manage.py path hacking. -sys.path.insert(0, abspath(join(dirname(__file__), "../"))) -sys.path.insert(0, abspath(join(dirname(__file__), "."))) - -# Run Django -os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' - -from django.core.servers.fastcgi import runfastcgi -runfastcgi(method='threaded', daemonize='false') -