From 55402e0445817df6740d1c0d440843fd58343f05 Mon Sep 17 00:00:00 2001 From: Hanne Moa Date: Mon, 21 Oct 2024 15:24:40 +0200 Subject: [PATCH] Write back to globals() --- src/argus/site/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/argus/site/utils.py b/src/argus/site/utils.py index f1144393c..e5d73e3cb 100644 --- a/src/argus/site/utils.py +++ b/src/argus/site/utils.py @@ -85,8 +85,11 @@ def update_settings(current_settings, app_settings, override=False): INSTALLED_APPS = _app_names + INSTALLED_APPS else: INSTALLED_APPS += _app_names + current_settings["INSTALLED_APPS"] = INSTALLED_APPS TEMPLATES = update_context_processors_list(TEMPLATES, app_settings) + current_settings["TEMPLATES"] = TEMPLATES MIDDLEWARE = update_middleware_list(MIDDLEWARE, app_settings) + current_settings["MIDDLEWARE"] = MIDDLEWARE for setting, value in get_settings(app_settings).items(): current_settings[setting] = value