Skip to content

Commit

Permalink
Write back to globals()
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Oct 21, 2024
1 parent 2a8c46f commit 55402e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/argus/site/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 55402e0

Please sign in to comment.