Skip to content
Snippets Groups Projects
Verified Commit d879bae3 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Bug fix for merge_app_settings

Without this bug fix the function doesn't import the settings module but the apps module.
parent ca7262f5
No related branches found
No related tags found
1 merge request!127Bug fix for merge_app_settings
Pipeline #679 failed
......@@ -47,7 +47,7 @@ def merge_app_settings(setting: str, original: Union[dict, list], deduplicate: b
for pkg in get_app_packages():
try:
mod_settings = import_module(pkg)
mod_settings = import_module(pkg + ".settings")
except ImportError:
# Import errors are non-fatal. They mean that the app has no settings.py.
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment