From 59849618789033649c789141001f1353eb491952 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 25 Jun 2026 12:25:44 +0545 Subject: [PATCH] fix(src/djinit/templates/config/settings): fix .env path resolution Prevent loading .env from wrong directory when project depth varies. --- src/djinit/templates/config/settings/base.py-tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/djinit/templates/config/settings/base.py-tpl b/src/djinit/templates/config/settings/base.py-tpl index e797080..02734cb 100644 --- a/src/djinit/templates/config/settings/base.py-tpl +++ b/src/djinit/templates/config/settings/base.py-tpl @@ -9,7 +9,7 @@ from pathlib import Path import environ -env_path = Path(__file__).resolve().parent.parent / ".env" +env_path = Path(__file__).resolve().parent.parent.parent / ".env" env = environ.Env() environ.Env.read_env(env_path)