Skip to content

Commit 132828f

Browse files
committed
Update env path
1 parent ddad043 commit 132828f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.DS_Store

0 Bytes
Binary file not shown.

create_fastapi_project/templates/basic/backend/app/app/core/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ModeEnum(str, Enum):
1010
testing = "testing"
1111

1212

13-
class Settings(BaseSettings):
13+
class Settings(BaseSettings, extra='ignore'):
1414
PROJECT_NAME: str = "app"
1515
BACKEND_CORS_ORIGINS: list[str] | list[AnyHttpUrl]
1616
MODE: ModeEnum = ModeEnum.development
@@ -21,7 +21,7 @@ class Settings(BaseSettings):
2121

2222
class Config:
2323
case_sensitive = True
24-
env_file = os.path.expanduser("~/.env")
24+
env_file = os.path.expanduser("../../.env")
2525

2626

2727
settings = Settings()

0 commit comments

Comments
 (0)