While adding django-configuratons to a big project that I'm working on I've noticed a few issues with DOTENV implementation and this PR focuses on fixing them, while still allowing for the old way of doing this. They are:
always failing if DOTENV file is not found (this was faulty due to CI not having this .env)
using setdefault to load variables (this was faulty because in a big project a lot of environmental variables come from a lot of sources and it's sometimes desirable to override them via DOTENV)
DOTENV not reloading on hotreload (this is annoying when you have to restart a docker container to see any changes that you've made in DOTENV)
While adding
django-configuratons
to a big project that I'm working on I've noticed a few issues withDOTENV
implementation and this PR focuses on fixing them, while still allowing for the old way of doing this. They are:.env
)DOTENV
)