From 7f0762a7ce01c5be1dfd2c02aeef30b1022666e9 Mon Sep 17 00:00:00 2001 From: Jason Cameron Date: Thu, 3 Oct 2024 00:28:08 -0400 Subject: [PATCH] Update local setting's location in prod Signed-off-by: Jason Cameron --- dmoj/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dmoj/settings.py b/dmoj/settings.py index c2a30d77e1..75c8809973 100644 --- a/dmoj/settings.py +++ b/dmoj/settings.py @@ -602,8 +602,9 @@ WEBAUTHN_RP_ID = None +LOCAL_SETTINGS_PATH = os.path.join(os.path.dirname(__file__), 'local_settings.py') if os.environ.get('DEBUG', '0') == '1' else '/local_settings.py' try: - with open(os.path.join(os.path.dirname(__file__), 'local_settings.py')) as f: + with open(LOCAL_SETTINGS_PATH) as f: exec(f.read(), globals()) except IOError as e: raise ImportError('Could not import local_settings.py: %s' % e) from IOError