X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/22e333d5e75ef180cf3b440f5c00e86f507476a8..29f2eef0ba05968f84c3afad30e1fa105fc56ed3:/sommitrealweird/django.wsgi?ds=inline 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()