FastAPI-Microservice-for-Django icon indicating copy to clipboard operation
FastAPI-Microservice-for-Django copied to clipboard

Outdated pydantic settings

Open roksage opened this issue 2 years ago • 0 comments

There's a problem when building API in digitalocean.

pydantic.errors.PydanticImportError: BaseSettingshas been moved to thepydantic-settings package

FIX:

# from pydantic import BaseSettings # OLD
from pydantic_settings import BaseSettings # NEW

roksage avatar Oct 27 '23 10:10 roksage