您好,请问一下pydantic的BaseSettings类里面有一个Config类覆写了,是有什么作用的呢?
Closed this issue · 4 comments
LeslieWuboy commented
class Settings(BaseSettings):
JWT_TTL: int = 60 * 24 * 8
JWT_SECRET_KEY: str = ""
JWT_ALGORITHM: str = 'HS256'
class Config:
env_file = ".env"
env_file_encoding = 'utf-8'
想了解一下,定义这个Config有什么作用?
kaxiluo commented
LeslieWuboy commented
kaxiluo commented
LeslieWuboy commented
了解,谢谢您的指点 @kaxiluo