mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-15 09:24:52 +03:00
Merge pull request #1 from PraneethKarnena/PraneethKarnena-patch-1
Fix .env file reading
This commit is contained in:
commit
d59f75e79f
|
@ -9,6 +9,7 @@ ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
|
|||
# {{ cookiecutter.project_slug }}/
|
||||
APPS_DIR = ROOT_DIR / "{{ cookiecutter.project_slug }}"
|
||||
env = environ.Env()
|
||||
environ.Env.read_env()
|
||||
|
||||
READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", default=False)
|
||||
if READ_DOT_ENV_FILE:
|
||||
|
|
Loading…
Reference in New Issue
Block a user