From 055091499bf55aef6fafb33efdcfa638a941ab5a Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Fri, 2 Nov 2018 09:38:03 -0400 Subject: [PATCH] wsgicustom: Import _strptime to avoid race conditions later. See the linked bug for details. --- www/wsgicustom.wsgi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/wsgicustom.wsgi b/www/wsgicustom.wsgi index ef6c10b7..b64d8b9d 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'