From: Marek Stępniowski Date: Wed, 17 Sep 2008 14:52:33 +0000 (+0200) Subject: Added wolnelektury.fcgi to repository. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/bf967b9c45fe221b88a251e2a754212bb175189e?ds=inline;hp=9248db7c869977349a89eeb23966b63c4dd5ff00 Added wolnelektury.fcgi to repository. --- 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') +