Move dev-mode setting to before urls are loaded

This commit is contained in:
James Polley 2018-06-24 22:22:19 +10:00
parent c375e6df78
commit dc6c8077ad

View file

@ -14,7 +14,7 @@ sys.path.append(os.path.join(PROJECT_ROOT, 'vendor'))
### USER SETTINGS
DEV_MODE = os.environ.get("SYMPOSION_DEV_MODE", None)
DEBUG = os.environ.get('SYMPOSION_APP_DEBUG', '0')
if isinstance(DEBUG, str):
try:
@ -411,7 +411,6 @@ GAPC_STORAGE = {
'num_retries': 2,
}
DEV_MODE = os.environ.get("SYMPOSION_DEV_MODE", None)
if DEV_MODE and DEV_MODE == "LAPTOP":
print("ENABLING LAPTOP MODE")
from .devmode_settings import *