How are you meant to debug errors in Flask? Print to the console? Flash messages to the page? Or is there a more powerful option available to figure out what\'s happening
Install python-dotenv in your virtual environment.
python-dotenv
Create a .flaskenv in your project root. By project root, I mean the folder which has your app.py file
Inside this file write the following:
FLASK_APP=myapp FLASK_ENV=development
Now issue the following command:
flask run