wsgicustom: Import _strptime to avoid race conditions later.
See the linked bug for details.
This commit is contained in:
parent
76019742c0
commit
055091499b
1 changed files with 3 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue