Init
This commit is contained in:
parent
4fbcb99743
commit
e770d17b5c
0
app/core/__init__.py
Normal file
0
app/core/__init__.py
Normal file
16
app/core/config.py
Normal file
16
app/core/config.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
from functools import lru_cache
|
||||||
|
|
||||||
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||||
|
|
||||||
|
|
||||||
|
class Settings(BaseSettings):
|
||||||
|
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")
|
||||||
|
|
||||||
|
APP_ENV: str = "development"
|
||||||
|
APP_PREFIX: str = ""
|
||||||
|
DATABASE_URL: str = "sqlite:///./app.db"
|
||||||
|
|
||||||
|
|
||||||
|
@lru_cache
|
||||||
|
def get_settings() -> Settings:
|
||||||
|
return Settings()
|
||||||
Loading…
x
Reference in New Issue
Block a user