Skip to content

Commit

Permalink
Lint
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 7f0762a commit e2a15e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dmoj/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,10 @@

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'
if os.environ.get('DEBUG', '0') == '1':
LOCAL_SETTINGS_PATH = os.path.join(os.path.dirname(__file__), 'local_settings.py')
else:
LOCAL_SETTINGS_PATH = '/local_settings.py'
try:
with open(LOCAL_SETTINGS_PATH) as f:
exec(f.read(), globals())
Expand Down

0 comments on commit e2a15e8

Please sign in to comment.