Changeset - 055091499bf5
[Not reviewed]
0 1 0
Brett Smith (brett) - 3 years ago 2018-11-02 13:38:03
brett@sfconservancy.org
wsgicustom: Import _strptime to avoid race conditions later.

See the linked bug for details.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www/wsgicustom.wsgi
Show inline comments
 
#!/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()
0 comments (0 inline, 0 general)