X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/34f37c3a599b71862980eaebaf26019d0d46602c..0da449be342d2024f3c87a065ed30da80c96bfa5:/sommitrealweird/django.wsgi?ds=sidebyside 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()