website/www/wsgicustom.wsgi
Brett Smith 055091499b wsgicustom: Import _strptime to avoid race conditions later.
See the linked bug for details.
2018-11-02 09:38:03 -04:00

14 lines
346 B
Python

#!/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()