mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-02 20:54:41 +03:00
fix issue #1039
This commit is contained in:
parent
d0cd31e019
commit
a0efe83901
|
@ -19,7 +19,7 @@ APPS_DIR = ROOT_DIR.path('{{ cookiecutter.project_slug }}')
|
||||||
env = environ.Env()
|
env = environ.Env()
|
||||||
|
|
||||||
# .env file, should load only in development environment
|
# .env file, should load only in development environment
|
||||||
READ_DOT_ENV_FILE = env('DJANGO_READ_DOT_ENV_FILE', default=False)
|
READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=False)
|
||||||
|
|
||||||
if READ_DOT_ENV_FILE:
|
if READ_DOT_ENV_FILE:
|
||||||
# Operating System Environment variables have precedence over variables defined in the .env file,
|
# Operating System Environment variables have precedence over variables defined in the .env file,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user