Harshit Ahluwalia
Harshit Ahluwalia

Reputation: 11

issue in running the flask project

ScrrenshotI'm not able to run the flask application, the error is 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.

enter image description here

Upvotes: 0

Views: 643

Answers (1)

Maksym Kysunko
Maksym Kysunko

Reputation: 100

To get better pointed to the root of your problem answer, please specify what kind of operating system you are using. Usually, the problem is in the format of the command people use to set the value of the system variables. Check that you put spaces around '=' when you set the value in the command: if that is Windows environments then SET FLASK_APP = "app.py" OR $FLASK_APP = "app.py"

Upvotes: 2

Related Questions