diff --git a/src/djinit/templates/config/settings/base.py-tpl b/src/djinit/templates/config/settings/base.py-tpl index 2611123..e797080 100644 --- a/src/djinit/templates/config/settings/base.py-tpl +++ b/src/djinit/templates/config/settings/base.py-tpl @@ -9,8 +9,9 @@ from pathlib import Path import environ +env_path = Path(__file__).resolve().parent.parent / ".env" env = environ.Env() -environ.Env.read_env() +environ.Env.read_env(env_path) # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent.parent