From ff32468fd8c7e0db756669d1783c2fe092322b44 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 8 Dec 2020 13:06:01 +0900 Subject: [PATCH] Update settings.py to fix loading error of django_heroku --- app/app/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app/settings.py b/app/app/settings.py index 84577b02..aa4ca062 100644 --- a/app/app/settings.py +++ b/app/app/settings.py @@ -284,7 +284,7 @@ if (spec := importlib.util.find_spec(name)) is not None: module = importlib.util.module_from_spec(spec) sys.modules[name] = module spec.loader.exec_module(module) - django_heroku.settings(locals(), test_runner=False) + module.settings(locals(), test_runner=False) # Change 'default' database configuration with $DATABASE_URL. DATABASES['default'].update(dj_database_url.config(