fix(src/djinit/templates/config/settings): fix .env path resolution

Prevent loading .env from wrong directory when project depth varies.
This commit is contained in:
sankalp committed 2026-06-25 12:25:44 +05:45
1 parent 5b755b789c
commit 5984961878
1 file changed
+1 -1
@@ -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)