Skip to content

Commit 7852083

Browse files
committed
Fix .env path loading
1 parent 9d01e9d commit 7852083

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
File renamed without changes.

config/settings_shared.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import structlog
2+
import os
23
from os import path
34
from pathlib import Path
45

@@ -7,7 +8,7 @@
78
from web_app import DEFAULT_PAGE_CACHE_TIME
89

910
env = Env()
10-
env.read_env()
11+
env.read_env(os.path.join(os.path.dirname(__file__), "../.env"))
1112

1213
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
1314

0 commit comments

Comments
 (0)