Browse Source

debug cfg flag enables flask debug mode

master
Lynne Megido 1 year ago
parent
commit
16d80fcd73
Signed by: Lynne <thecoolone3@gmail.com> GPG Key ID: FB7B970303ACE499
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      web.py

+ 2
- 0
web.py View File

@@ -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…
Cancel
Save