From 19764cea81277dc456b06d8bf124797ab8502ee6 Mon Sep 17 00:00:00 2001 From: Sami Olmari Date: Sat, 23 Dec 2023 00:51:35 +0200 Subject: [PATCH] Fix loading of local settings. In drxf/settings.py move importing of local settings last thing that is done, this way any/all custom settings gets priority as they're loaded last. Signed-off-by: Sami Olmari --- drfx/settings.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drfx/settings.py b/drfx/settings.py index 6103367a..f0030c98 100644 --- a/drfx/settings.py +++ b/drfx/settings.py @@ -345,12 +345,6 @@ # Import just to get in the translation context # from utils import businesslogic -# Load non-default settings from settings_local.py if it exists -try: - from .settings_local import * # noqa -except ImportError: - pass - CONSTANCE_BACKEND = "constance.backends.database.DatabaseBackend" # Constance config - settings for the app that are editable in django admin @@ -387,3 +381,9 @@ # "ACCOUNT_BIC": (ACCOUNT_BIC, "BIC of the association's bank account"), # "ACCOUNT_NAME": (ACCOUNT_NAME, "Name of the association's bank account"), } + +# Load non-default settings from settings_local.py if it exists +try: + from .settings_local import * # noqa +except ImportError: + pass \ No newline at end of file