From 4d546f74152a3d54a0bddcae8069e21e38aac822 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 5 Feb 2012 00:51:31 -0400 Subject: [PATCH] Remove celery code line --- wsgi/dispatch.wsgi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wsgi/dispatch.wsgi b/wsgi/dispatch.wsgi index fc2615a09a..39c427a61a 100644 --- a/wsgi/dispatch.wsgi +++ b/wsgi/dispatch.wsgi @@ -2,9 +2,13 @@ import os import sys import site +from django.core.handlers.wsgi import WSGIHandler + sys.stdout = sys.stderr -ve_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'lib/python2.6/site-packages')) +#TODO fix properly +ve_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'lib/python2.7/site-packages')) # Change python 2.6 to the python version you are using + # Add the virtual Python environment site-packages directory to the path site.addsitedir(ve_path) @@ -16,7 +20,5 @@ sys.path.insert(0, ve_path) # Avoid ``[Errno 13] Permission denied: '/var/www/.python-eggs'`` messages os.environ['PYTHON_EGG_CACHE'] = '/tmp' os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' -os.environ['CELERY_LOADER'] = 'django' -from django.core.handlers.wsgi import WSGIHandler application = WSGIHandler()