Answered by : calm-capybara-s8om9rq9lwpf
export FLASK_APP="mainfilename.py"
export FLASK_DEBUG=1
python -m flask run --host=0.0.0.0
Source : https://stackoverflow.com/questions/17309889/how-to-debug-a-flask-app | Last Update : Wed, 12 Jan 22
Answered by : long-lemur-7vkkwzdawwa0
app.run(debug=True)
Source : https://flask.palletsprojects.com/en/master/debugging/ | Last Update : Wed, 19 May 21
Answered by : long-lemur-7vkkwzdawwa0
$ export FLASK_ENV=development
$ flask run
Source : https://flask.palletsprojects.com/en/master/debugging/ | Last Update : Wed, 19 May 21
Answered by : fahim-foysal-rabby
{"tags":[{"tag":"p","content":"run flask app in debug mode"},{"tag":"textarea","content":"export FLASK_DEBUG=1 && flask run","code_language":"python"}]}
Source : | Last Update : Thu, 13 Apr 23
Answered by : dangerous-dogfish-kryceweuqskz
export FLASK_ENV=development
# To launch the app (Needed only once)
flask run
Source : https://flask.palletsprojects.com/en/2.0.x/quickstart/ | Last Update : Tue, 28 Sep 21
Answered by : fine-flatworm-0rtdcvl4ols7
{"tags":[{"tag":"textarea","content":"export FLASK_DEBUG=true\nflask run","code_language":"shell"}]}
Source : | Last Update : Fri, 17 Feb 23
Answered by : rohan-m
Windows CMD
set FLASK_ENV=development
Windows PowerShell
$env:FLASK_ENV = "development"
Linux/MacOS
export FLASK_ENV=development
Source : | Last Update : Sun, 16 Jul 23