Use absolute paths when checking for app settings files to include.

- Legacy-Id: 11957
This commit is contained in:
Henrik Levkowetz 2016-09-09 14:39:55 +00:00
parent 7843ea25c5
commit 350d5315a5

View file

@ -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")