X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/22e333d5e75ef180cf3b440f5c00e86f507476a8..4ad54bc9a9429a2c5c288192c663f75ae1e7aad9:/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()