From fb365cd17823a1e49e17161262f485b857f145ab Mon Sep 17 00:00:00 2001 From: Maxime Date: Mon, 27 Jul 2015 22:51:36 +0000 Subject: [PATCH] Making DEBUG a configuration --- config.py | 3 +++ run.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 233c9fcdd..87d19d2cd 100644 --- a/config.py +++ b/config.py @@ -36,6 +36,9 @@ SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db') # Flask-WTF flag for CSRF CSRF_ENABLED = True +#Whether to run the web server in debug mode or not +DEBUG = True + #------------------------------ # GLOBALS FOR APP Builder #------------------------------ diff --git a/run.py b/run.py index 3c2d0e5fc..954749f8c 100644 --- a/run.py +++ b/run.py @@ -1,5 +1,8 @@ from app import app import config -app.run(host='0.0.0.0', port=int(config.PANORAMIX_WEBSERVER_PORT), debug=True) +app.run( + host='0.0.0.0', + port=int(config.PANORAMIX_WEBSERVER_PORT), + debug=config.DEBUG)