Browse Source

Merge pull request #2668 from pallets/tip-dotenv

Add tip for dotenv
pull/2672/merge
David Lord 7 years ago committed by GitHub
parent
commit
47a00864c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      flask/cli.py

5
flask/cli.py

@ -585,6 +585,11 @@ def load_dotenv(path=None):
"""
if dotenv is None:
if path or os.path.exists('.env') or os.path.exists('.flaskenv'):
click.secho(
' * Tip: There are .env files present.'
' Do "pip install python-dotenv" to use them',
fg='yellow')
return
if path is not None:

Loading…
Cancel
Save