Prior to Flask 2.2, you needed to set the FLASK_APP and FLASK_ENV=development environment variables. $ export FLASK_APP=main.py $ export FLASK_ENV=development $ flask run It is still possible to set FLASK_APP and FLASK_DEBUG=1 in Flask 2.2. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.