Skip to content

Error: Could not locate Flask application. You did not provide the FLASK_APP environment variable. #58

Open
@tadwhitaker

Description

@tadwhitaker

I ran into an Issue (resolved already as a separate issue in this repo) about a Werkzeug version conflict. Running flask run -p 5001 resulted in the following error:

  • Error: Could not locate Flask application. You did not provide the FLASK_APP environment variable.

I resolved this by adding 'export FLASK_APP=app.py' in the .env file, rerunning 'source .env' and then rerunning 'flask run -p 5001' to get it running.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions