Pydantic BaseSettings priority customisation
Opened this issue · 1 comments
DanNduati commented
By default even when using a dotenv file, Pydantic
will still read environment variables from your bash profile as well as the dotenv file, environment variables in the bash profile will always take priority over those in the dotenv file. I was able to override this behaviour when using python-dotenv
however i have not been able to accomplish the same with pydantic. Here is a list of resources on the issue:
DanNduati commented
Reopened this because I took the lazy way out and just deleted the conflicting env. variable from my bash local env and called that a fix lol.