15 lines
362 B
Python
15 lines
362 B
Python
from functools import lru_cache
|
|
from typing import Optional
|
|
|
|
from pydantic import BaseSettings, PostgresDsn
|
|
|
|
class Settings(BaseSettings):
|
|
database_url: Optional[PostgresDsn]
|
|
|
|
@lru_cache
|
|
def get_settings() -> Settings:
|
|
settings = Settings() # type: ignore
|
|
print('333333333333333333333333333333333333333333')
|
|
print(settings)
|
|
#CONTINUE
|
|
return settings |