Ensure that FLASK_ENV environment variable is set to development. this activates the debug mode and auto reloads the app when you make changes.
in terminal set the environment varable before running your app
export FLASK_ENV=development
or in Windows
set FLASK_ENV=development
Restart the server.