From deea193a25a1545fedb80757099c198239f5fa9d Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Thu, 14 Sep 2023 22:04:37 +1000 Subject: [PATCH] Update WSGI entrypoint to match standard Django --- www/wsgi.py | 7 +++++++ www/wsgicustom.wsgi | 14 -------------- 2 files changed, 7 insertions(+), 14 deletions(-) create mode 100644 www/wsgi.py delete mode 100644 www/wsgicustom.wsgi diff --git a/www/wsgi.py b/www/wsgi.py new file mode 100644 index 00000000..5c5d4c12 --- /dev/null +++ b/www/wsgi.py @@ -0,0 +1,7 @@ +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'conservancy.settings') + +application = get_wsgi_application() diff --git a/www/wsgicustom.wsgi b/www/wsgicustom.wsgi deleted file mode 100644 index b64d8b9d..00000000 --- a/www/wsgicustom.wsgi +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env python - -import os -import sys - -# Work around -import _strptime - -root_dir = os.path.abspath(os.path.dirname(__file__)) -sys.path.insert(0, root_dir) -os.environ['DJANGO_SETTINGS_MODULE'] = 'conservancy.settings' - -from django.core.wsgi import get_wsgi_application -application = get_wsgi_application()