I am getting an error "Could not locate a Flask application."

  Uncategorised

enter image description hereEnvironment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.

  • Debug mode: off
    Usage: flask run [OPTIONS]

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.

Source: Visual Studio Questions

LEAVE A COMMENT