Update WSGI entrypoint to match standard Django

This commit is contained in:
Ben Sturmfels 2023-09-14 22:04:37 +10:00
parent 38dec75ddd
commit deea193a25
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
2 changed files with 7 additions and 14 deletions

7
www/wsgi.py Normal file
View file

@ -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()

View file

@ -1,14 +0,0 @@
#!/usr/bin/env python
import os
import sys
# Work around <https://bugs.python.org/issue7980>
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()