fix DEBUG flag is not default in os environment

This commit is contained in:
doanguyen 2020-01-05 22:53:00 +01:00
parent 5af974fc5d
commit 5ffdc45c87
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ COLOR_LOG = "COLOR_LOG" in os.environ
PROMO_CODE = "SIMPLEISBETTER"
# Debug mode
DEBUG = os.environ["DEBUG"]
DEBUG = os.environ["DEBUG"] if "DEBUG" in os.environ else False
# Server url
URL = os.environ["URL"]
print(">>> URL:", URL)