Skip to content
Myr

Merge pull request #2668 from pallets/tip-dotenv

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add tip for dotenv

authored by David Lord · committed by GitHub · parents cc51ace, 08e61ea · Browse files · 1 file+5 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:flask/cli.py+5 added
583 unmodified lines
584 .. versionadded:: 1.0585 """586587 if dotenv is None:588 if path or os.path.exists('.env') or os.path.exists('.flaskenv'):589 click.secho(590 ' * Tip: There are .env files present.'591 ' Do "pip install python-dotenv" to use them',592 fg='yellow')593 return594595 if path is not None:596 return dotenv.load_dotenv(path)
294 unmodified lines