Use absolute paths when checking for app settings files to include.
- Legacy-Id: 11957
This commit is contained in:
parent
7843ea25c5
commit
350d5315a5
|
@ -699,7 +699,7 @@ from settings_local import * # pyflakes:ignore pylint: disable=wildca
|
|||
|
||||
for app in INSTALLED_APPS:
|
||||
if app.startswith('ietf'):
|
||||
app_settings_file = os.path.join(app.replace('.', os.sep), "settings.py")
|
||||
app_settings_file = os.path.join(BASE_DIR, '../', app.replace('.', os.sep), "settings.py")
|
||||
if os.path.exists(app_settings_file):
|
||||
exec "from %s import *" % (app+".settings")
|
||||
|
||||
|
|
Loading…
Reference in a new issue