Answers for "vs codeyou did not provide the "flask_app" environment variable, and a "wsgi.py" or "app.py" module was not found in the current directory"

0

Error: Could not locate a Flask application. You did not provide the "FLASK_APP" environment variable, and a "wsgi.py" or "app.py" module was not found in the current directory.

set FLASK_APP=hello.py
$env:FLASK_APP = "hello.py"
flask run
Posted by: Guest on September-18-2021
0

Error: Could not locate a Flask application. You did not provide the "FLASK_APP" environment variable, and a "wsgi.py" or "app.py" module was not found in the current directory.

$env:FLASK_APP="base.py"
Posted by: Guest on November-27-2021

Code answers related to "vs codeyou did not provide the "flask_app" environment variable, and a "wsgi.py" or "app.py" module was not found in the current directory"

Python Answers by Framework

Browse Popular Code Answers by Language