debug cfg flag enables flask debug mode
This commit is contained in:
parent
0dd8efccff
commit
16d80fcd73
1 changed files with 2 additions and 0 deletions
2
web.py
2
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():
|
||||
|
|
Loading…
Reference in a new issue