I just started learning flask and I am stuck at setting up the Flask environment variables. I don\'t know how to setup the environment variables. Whenever I use the flask
flask
Windows PowerShell
set FLASK_APP=hello.py $env:FLASK_APP = "hello.py" flask run
If you're using powershell, make sure you add quotations when setting the environment variable:
$env:FLASK_APP = "app.py
Then flask run should work.
flask run