if there is an error reload the pagee automatically flask code example
Example: install flask auto reload
$ export FLASK_APP=main.py
$ export FLASK_ENV=development
$ flask run
$ export FLASK_APP=main.py
$ export FLASK_ENV=development
$ flask run