Skip to content

Commit 820539e

Browse files
committed
Changed import path for settings_local.py to work with absolute_import under Py2, and also under Py3.
- Legacy-Id: 16506
1 parent 6ef24e9 commit 820539e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def maybe_patch_library(app_configs, **kwargs):
400400
@checks.register('security')
401401
def check_api_key_in_local_settings(app_configs, **kwargs):
402402
errors = []
403-
import settings_local
403+
import ietf.settings_local
404404
if settings.SERVER_MODE == 'production':
405405
if not ( hasattr(settings_local, 'API_PUBLIC_KEY_PEM')
406406
and hasattr(settings_local, 'API_PRIVATE_KEY_PEM')):

ietf/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ def skip_unreadable_post(record):
10591059

10601060
# Put the production SECRET_KEY in settings_local.py, and also any other
10611061
# sensitive or site-specific changes. DO NOT commit settings_local.py to svn.
1062-
from settings_local import * # pyflakes:ignore pylint: disable=wildcard-import
1062+
from ietf.settings_local import * # pyflakes:ignore pylint: disable=wildcard-import
10631063

10641064
for app in INSTALLED_APPS:
10651065
if app.startswith('ietf'):

0 commit comments

Comments
 (0)