wsgicustom: Import _strptime to avoid race conditions later.

See the linked bug for details.
This commit is contained in:
Brett Smith 2018-11-02 09:38:03 -04:00
parent 76019742c0
commit 055091499b

View file

@ -3,6 +3,9 @@
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'