From bf967b9c45fe221b88a251e2a754212bb175189e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Wed, 17 Sep 2008 16:52:33 +0200 Subject: [PATCH 1/1] Added wolnelektury.fcgi to repository. --- wolnelektury.fcgi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 wolnelektury.fcgi diff --git a/wolnelektury.fcgi b/wolnelektury.fcgi new file mode 100644 index 000000000..badca95ae --- /dev/null +++ b/wolnelektury.fcgi @@ -0,0 +1,17 @@ +#!/usr/bin/python +import sys +import os +from os import path + +# Add project directories to PYTHONPATH +PROJECT_DIR = path.abspath(path.dirname(__file__)) +PROJECT_MODULE_DIRS = [PROJECT_DIR + '/lib', PROJECT_DIR + '/apps', PROJECT_DIR + '/wolnelektury'] + +sys.path = PROJECT_MODULE_DIRS + sys.path + +# Set the DJANGO_SETTINGS_MODULE environment variable. +os.environ['DJANGO_SETTINGS_MODULE'] = 'settings_eo' + +from django.core.servers.fastcgi import runfastcgi +runfastcgi(method='threaded', daemonize='false') + -- 2.20.1