Skip to content

Error: Could not locate a Flask application.  #1881

@gchristofferson

Description

@gchristofferson

After following these steps in the Python Flask tutorial:
https://code.visualstudio.com/docs/python/tutorial-flask#_refactor-the-project-to-support-further-development

I can only run the app in the python debug console. I can't run it in powershell, although I am following the same steps, I get this error:

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions