Skip to content

Add a parameter to disable load dotenv using Flask CLI #2722

@fabiocerqueira

Description

@fabiocerqueira

Running Flask CLI with pipenv using the new version(1.0)

pipenv run flask run

I always get the tip message about the load_dotenv feature. Since pipenv already load the .env file, It might be interesting have some parameter to disable Flask to load .env and does not show the tip message.

Expected Behavior

Disable load dotenv using the Flask CLI. Example:

pipenv run flask run --ignore-dotenv

Or just remove the tip message and let it only in the documentation.

Actual Behavior

Showing the dotenv tip message even if the developer doesn't want to use it
* Tip: There are .env files present. Do "pip install python-dotenv" to use them

Environment

  • Python version: 3.6.4
  • Flask version: 1.0
  • Werkzeug version: 0.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions