Add tip for dotenv
This commit is contained in:
parent
a2ea18693c
commit
08e61ea200
1 changed files with 5 additions and 0 deletions
|
|
@ -585,6 +585,11 @@ def load_dotenv(path=None):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if dotenv is 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
|
return
|
||||||
|
|
||||||
if path is not None:
|
if path is not None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue