Tags
python
Asked 4 years ago
2 Apr 2020
Views 12887
sarah

sarah posted

how to turn off debug mode in flask app ?

when i run

python app.py

flask app is running but issue is it says
* Environment: production
and debugger is active

so i want to make debugger unactive

so can you suggest me how can i turn off the debug mode off in flask app ?
Rasi

Rasi
answered Nov 30 '-1 00:00

run.py

from app import app
app.run(debug=True)


make it to

from app import app
app.run(debug=False)


it should work .
Post Answer