From 57b7dbdead87b83ebc630a1ea70b9ada08599f5b Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Wed, 12 May 2010 09:00:09 +0200 Subject: [PATCH] * Removed unneeded files. * Fixed context processor (stupid bug). * Fixed some statics. --- wolnelektury/settings.py | 2 +- wolnelektury/templates/base.html | 4 ++-- wolnelektury/wolnelektury.fcgi | 23 ----------------------- wolnelektury/wolnelektury.wsgi | 23 ----------------------- 4 files changed, 3 insertions(+), 49 deletions(-) delete mode 100644 wolnelektury/wolnelektury.fcgi delete mode 100644 wolnelektury/wolnelektury.wsgi 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() - -- 2.20.1