From: Brett Parker Date: Sun, 24 May 2015 18:18:45 +0000 (+0100) Subject: Fix the WSGI X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/commitdiff_plain/6bec9dfd9d2ea3cc93ac1b5caab895140416c98c Fix the WSGI --- 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()