debug cfg flag enables flask debug mode

This commit is contained in:
Lynne Megido 2018-11-14 01:31:11 +10:00
parent 0dd8efccff
commit 16d80fcd73
Signed by: lynnesbian
GPG key ID: FB7B970303ACE499

2
web.py
View file

@ -50,6 +50,8 @@ gdb.close()
app = Flask(cfg['name']) app = Flask(cfg['name'])
app.secret_key = cfg['flask_key'] app.secret_key = cfg['flask_key']
if cfg['debug']:
app.config['DEBUG'] = True
@app.route('/') @app.route('/')
def main(): def main():