Skip to content
Myr

Add tip for dotenv

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

authored by Hsiaoming Yang · committed by Hsiaoming Yang · parent a2ea186 · 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