Skip to content

Commit

Permalink
Update local setting's location in prod
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 c2d96e0 commit 7f0762a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dmoj/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f0762a

Please sign in to comment.