import os | |
#from pydantic import BaseSettings, Field | |
from pydantic_settings import BaseSettings | |
from pydantic import Field | |
class Settings(BaseSettings): | |
db_url: str = Field(..., env='DATABASE_URL') | |
settings = Settings() |
import os | |
#from pydantic import BaseSettings, Field | |
from pydantic_settings import BaseSettings | |
from pydantic import Field | |
class Settings(BaseSettings): | |
db_url: str = Field(..., env='DATABASE_URL') | |
settings = Settings() |