Skip to content
Snippets Groups Projects
Commit f4189815 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Merge branch 'fix-environ-type' into 'master'

Fix a strange bug with runserver on Python 3.6.7+

See merge request !242
parents eee13006 31f84a5c
No related branches found
No related tags found
1 merge request!242Fix a strange bug with runserver on Python 3.6.7+
......@@ -112,7 +112,7 @@ ARKINDEX_ENV = os.environ.get('ARKINDEX_ENV', 'dev')
DEBUG = ARKINDEX_ENV == 'dev'
# Run all system checks when starting the server
ALL_CHECKS = bool(os.environ.get('ALL_CHECKS', False)) or 'runserver' in sys.argv
ALL_CHECKS = os.environ.get('ALL_CHECKS') == 'true' or 'runserver' in sys.argv
ALLOWED_HOSTS = env2list('ALLOWED_HOSTS', default=['localhost', ])
......
......@@ -12,6 +12,6 @@ import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "arkindex.project.settings")
os.environ['ALL_CHECKS'] = True
os.environ['ALL_CHECKS'] = 'true'
application = get_wsgi_application()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment