-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to overwrite existing environment variables in read_env #191
Conversation
This would be very useful to have 👍 |
_setup: do not call django.setup() if settings are configured already
@joke2k Can we get this merged? |
Any chance this will be merged soon? |
I think the idea that it should not override original env variables [os.environ] You can use the following helper to merge envs from files
and later load them by
|
PR was closed by mistake. Reopened it. |
This is implemented in |
This PR addresses issue #103.
I've had this issue with the uwsgi touch-reload command. It won't pick up updates to .env files.
In some use cases, the .env file should be the master, so an overwrite=True option will resolve the issue in this case.
The temp dict was needed since there is no dict.set(k,v) method. The lambda can't do dict[k] = v.