From 78a293c9959c17505ea478c578a348348145d734 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 16 May 2024 15:38:00 +0200 Subject: đŸ”§ load custom settings after local settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example_project/settings.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'example_project/settings.py') diff --git a/example_project/settings.py b/example_project/settings.py index 511c84f15..39a79f671 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -338,11 +338,6 @@ SHARE_BASE_PATH = FIXTURE_AUTH_PATH AUTH_PASSWORD_VALIDATORS = [] -try: - from custom_settings import * -except ImportError: - pass - try: from local_settings import * except ImportError as e: @@ -351,6 +346,11 @@ except ImportError as e: except ImportError as e: print("Unable to load local_settings.py:", e) +try: + from custom_settings import * +except ImportError: + pass + if USE_TRANSLATION_OVERLOAD: INSTALLED_APPS.insert(0, "overload_translation") -- cgit v1.2.3