Skip to content
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

Enable overriding environ values #88

Merged
merged 1 commit into from
Apr 22, 2020

Conversation

rastytheamateur
Copy link

Django's override_settings does not override values taken from os.environ.

After a discussion we agreed with @ziima that the best way to fix this is to temporarily rename affected keys in os.environ. The setting_changed signal is received when settings_override is called and settings_override should be used just and only in tests, so this solution should have no impact on usual use.

src/appsettings/__init__.py Outdated Show resolved Hide resolved
src/appsettings/__init__.py Outdated Show resolved Hide resolved
tests/test_appsettings.py Outdated Show resolved Hide resolved
src/appsettings/__init__.py Outdated Show resolved Hide resolved
tests/test_appsettings.py Outdated Show resolved Hide resolved
@ziima ziima merged commit ef171eb into pawamoy:master Apr 22, 2020
@rastytheamateur rastytheamateur deleted the override-environ-values branch July 2, 2020 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants