Open skewty opened 4 years ago
https://github.com/ahmednafies/fastapi_sqlalchemy_alembic/blob/c97cca7438faaf20bddf7451f34561b193fdf57f/main.py#L16
The more appropriate way to refer to configuration in environment in FastAPI is via pydantic.BaseConfig. If I am not mistaken that is how FastAPI does things for itself.
pydantic.BaseConfig
ohh that is new, I did not know that. thank very much for sharing :)
https://github.com/ahmednafies/fastapi_sqlalchemy_alembic/blob/c97cca7438faaf20bddf7451f34561b193fdf57f/main.py#L16
The more appropriate way to refer to configuration in environment in FastAPI is via
pydantic.BaseConfig
. If I am not mistaken that is how FastAPI does things for itself.