From 6bec9dfd9d2ea3cc93ac1b5caab895140416c98c Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Sun, 24 May 2015 19:18:45 +0100 Subject: [PATCH] Fix the WSGI --- sommitrealweird/django.wsgi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sommitrealweird/django.wsgi b/sommitrealweird/django.wsgi index 3fa5191..da8644a 100644 --- a/sommitrealweird/django.wsgi +++ b/sommitrealweird/django.wsgi @@ -1,9 +1,8 @@ import os, sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '.'))) -sys.path.append('/usr/local/django') -os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") -import django.core.handlers.wsgi +from django.core.wsgi import get_wsgi_application +application = get_wsgi_application() -application = django.core.handlers.wsgi.WSGIHandler() -- 2.39.5