From 16d80fcd731877cd0677bf2d237cb868cdf50c37 Mon Sep 17 00:00:00 2001 From: Lynne Date: Wed, 14 Nov 2018 01:31:11 +1000 Subject: [PATCH] debug cfg flag enables flask debug mode --- web.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web.py b/web.py index 86998d4..2072c77 100755 --- a/web.py +++ b/web.py @@ -50,6 +50,8 @@ gdb.close() app = Flask(cfg['name']) app.secret_key = cfg['flask_key'] +if cfg['debug']: + app.config['DEBUG'] = True @app.route('/') def main():