Flask - Webserver not reloading on code change Flask - Webserver not reloading on code change flask flask

Flask - Webserver not reloading on code change


Press CTR + C to end your server on the terminal and copy and paste this in the terminal to run Flask again

FLASK_DEBUG=1 flask run

This will set Debug mode: on


To set variable in powershell -

$env:FLASK_DEBUG=1


No! You have not run your app in debug mode.

app.run(debug=True)

This way any changes in your code will restart the server and your code changes will reflect pretty much in real time.