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:
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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user