1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Complained on override_settings(INSTALLED_APPS=...).

Currently such overrides aren't reflected in the app cache.

It would  be possible to handle them. But that doesn't look like a very
good API. It makes it complicated to express "add this app" and "remove
this app", which are the most common operations on INSTALLED_APPS.
This commit is contained in:
Aymeric Augustin
2013-12-20 10:44:32 +01:00
parent 16aae35ca8
commit 517c24bcfa
2 changed files with 9 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ setting_changed = Signal(providing_args=["setting", "value", "enter"])
# except for cases where the receiver is related to a contrib app.
# Settings that may not work well when using 'override_settings' (#19031)
COMPLEX_OVERRIDE_SETTINGS = set(['DATABASES'])
COMPLEX_OVERRIDE_SETTINGS = set(['DATABASES', 'INSTALLED_APPS'])
@receiver(setting_changed)