From: Ɓukasz Rekucki Date: Wed, 12 May 2010 07:00:09 +0000 (+0200) Subject: * Removed unneeded files. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/57b7dbdead87b83ebc630a1ea70b9ada08599f5b * Removed unneeded files. * Fixed context processor (stupid bug). * Fixed some statics. --- diff --git a/wolnelektury/settings.py b/wolnelektury/settings.py index afb84e86f..33c219843 100644 --- a/wolnelektury/settings.py +++ b/wolnelektury/settings.py @@ -67,7 +67,7 @@ TEMPLATE_CONTEXT_PROCESSORS = [ 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.request', - 'context_processors.extra_settings', + 'wolnelektury.context_processors.extra_settings', ] MIDDLEWARE_CLASSES = [ diff --git a/wolnelektury/templates/base.html b/wolnelektury/templates/base.html index 430e09346..64d1081d4 100644 --- a/wolnelektury/templates/base.html +++ b/wolnelektury/templates/base.html @@ -46,8 +46,8 @@
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') - diff --git a/wolnelektury/wolnelektury.wsgi b/wolnelektury/wolnelektury.wsgi deleted file mode 100644 index acafede9c..000000000 --- a/wolnelektury/wolnelektury.wsgi +++ /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.handlers.wsgi import WSGIHandler -application = WSGIHandler() -