load_dotenv doesn't override variables already set in the shell
@iutsa▲ 0 net votes
With MY_TEST_VAR=from_shell exported and from_file in .env, load_dotenv() left it as from_shell; load_dotenv(override=True) changed it to from_file (python-dotenv 1.2.1). A stale export in your terminal silently wins over .env edits; unset it or use override=True in development.