From 15c0d3421129641a14f90a5ac10f3b591b4b7730 Mon Sep 17 00:00:00 2001 From: Felipe Reyes Date: Fri, 3 Jun 2022 14:56:40 -0400 Subject: [PATCH] Set customization_module in local_settings.py The configuration key customization-module is expected to set HORIZON_CONFIG["customization_module"] in local_settings.py although this was missing from the template for releases >= newton. Change-Id: Ia741bf3d8298f66b4f1e2324159d4ab851634efb Closes-Bug: #1977494 --- templates/newton/local_settings.py | 2 ++ templates/ocata/local_settings.py | 1 + templates/queens/local_settings.py | 1 + templates/stein/local_settings.py | 1 + 4 files changed, 5 insertions(+) diff --git a/templates/newton/local_settings.py b/templates/newton/local_settings.py index 58e8c692..e4c65b79 100644 --- a/templates/newton/local_settings.py +++ b/templates/newton/local_settings.py @@ -130,6 +130,8 @@ HORIZON_CONFIG["password_autocomplete"] = "on" HORIZON_CONFIG["disable_password_reveal"] = True {% endif %} +HORIZON_CONFIG["customization_module"] = "{{ customization_module }}" + LOCAL_PATH = os.path.dirname(os.path.abspath(__file__)) # Set custom secret key: diff --git a/templates/ocata/local_settings.py b/templates/ocata/local_settings.py index 8d05ba36..e2d982f0 100644 --- a/templates/ocata/local_settings.py +++ b/templates/ocata/local_settings.py @@ -130,6 +130,7 @@ HORIZON_CONFIG["password_autocomplete"] = "on" HORIZON_CONFIG["disable_password_reveal"] = True {% endif %} +HORIZON_CONFIG["customization_module"] = "{{ customization_module }}" LOCAL_PATH = os.path.dirname(os.path.abspath(__file__)) diff --git a/templates/queens/local_settings.py b/templates/queens/local_settings.py index 6b2e3b27..d172bb18 100644 --- a/templates/queens/local_settings.py +++ b/templates/queens/local_settings.py @@ -130,6 +130,7 @@ HORIZON_CONFIG["password_autocomplete"] = "on" HORIZON_CONFIG["disable_password_reveal"] = True {% endif %} +HORIZON_CONFIG["customization_module"] = "{{ customization_module }}" LOCAL_PATH = os.path.dirname(os.path.abspath(__file__)) diff --git a/templates/stein/local_settings.py b/templates/stein/local_settings.py index 7ceb3e8f..e77e9e6d 100644 --- a/templates/stein/local_settings.py +++ b/templates/stein/local_settings.py @@ -130,6 +130,7 @@ HORIZON_CONFIG["password_autocomplete"] = "on" HORIZON_CONFIG["disable_password_reveal"] = True {% endif %} +HORIZON_CONFIG["customization_module"] = "{{ customization_module }}" LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))