mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-16 09:54:51 +03:00
Fix .env file reading
In order to properly read `.env` file, the below line has to be added: `environ.Env.read_env()`
This commit is contained in:
parent
53a112b6e4
commit
9efe69465f
|
@ -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