refactor(src/djinit/templates/project): adjust env_path to parent instead of parent.parent
Simplify path resolution and avoid unnecessary filesystem traversal.
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 / ".env"
|
||||
env = environ.Env()
|
||||
environ.Env.read_env(env_path)
|
||||
|
||||
|
||||
Reference in new issue
Block a user