From 055091499bf55aef6fafb33efdcfa638a941ab5a 2018-11-02 13:38:03 From: Brett Smith Date: 2018-11-02 13:38:03 Subject: [PATCH] wsgicustom: Import _strptime to avoid race conditions later. See the linked bug for details. --- diff --git a/www/wsgicustom.wsgi b/www/wsgicustom.wsgi index ef6c10b76ddc93a33d1491d1240e206f2f563316..b64d8b9ddf19c20421b2279b85be57aa8f467459 100644 --- a/www/wsgicustom.wsgi +++ b/www/wsgicustom.wsgi @@ -3,6 +3,9 @@ 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'