Skip to content

Commit 6ea8741

Browse files
committed
Fixed some issues with the changed import path of ietf.settings_local.
- Legacy-Id: 16507
1 parent 820539e commit 6ea8741

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ietf/checks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ def check_api_key_in_local_settings(app_configs, **kwargs):
402402
errors = []
403403
import ietf.settings_local
404404
if settings.SERVER_MODE == 'production':
405-
if not ( hasattr(settings_local, 'API_PUBLIC_KEY_PEM')
406-
and hasattr(settings_local, 'API_PRIVATE_KEY_PEM')):
405+
if not ( hasattr(ietf.settings_local, 'API_PUBLIC_KEY_PEM')
406+
and hasattr(ietf.settings_local, 'API_PRIVATE_KEY_PEM')):
407407
errors.append(checks.Critical(
408408
"There are no API key settings in your settings_local.py",
409409
hint = dedent("""
@@ -417,8 +417,8 @@ def check_api_key_in_local_settings(app_configs, **kwargs):
417417
""").replace('\n', '\n ').rstrip(),
418418
id = "datatracker.E0020",
419419
))
420-
elif not ( settings_local.API_PUBLIC_KEY_PEM == settings.API_PUBLIC_KEY_PEM
421-
and settings_local.API_PRIVATE_KEY_PEM == settings.API_PRIVATE_KEY_PEM ):
420+
elif not ( ietf.settings_local.API_PUBLIC_KEY_PEM == settings.API_PUBLIC_KEY_PEM
421+
and ietf.settings_local.API_PRIVATE_KEY_PEM == settings.API_PRIVATE_KEY_PEM ):
422422
errors.append(checks.Critical(
423423
"Your API key settings in your settings_local.py are not picked up in settings.",
424424
hint = dedent("""

0 commit comments

Comments
 (0)