Skip to content

Commit

Permalink
Fix settings
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Cameron <[email protected]>
  • Loading branch information
JasonLovesDoggo committed Oct 3, 2024
1 parent e2a15e8 commit 47d6cb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dmoj/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,10 +602,10 @@

WEBAUTHN_RP_ID = None

if os.environ.get('DEBUG', '0') == '1':
LOCAL_SETTINGS_PATH = os.path.join(os.path.dirname(__file__), 'local_settings.py')
else:
if os.environ.get('DEBUG', '0') == '0' and os.path.exists('/local_settings.py'):
LOCAL_SETTINGS_PATH = '/local_settings.py'
else:
LOCAL_SETTINGS_PATH = os.path.join(os.path.dirname(__file__), 'local_settings.py')
try:
with open(LOCAL_SETTINGS_PATH) as f:
exec(f.read(), globals())
Expand Down

0 comments on commit 47d6cb0

Please sign in to comment.