diff --git a/platformifier/templates/django/settings_psh.py b/platformifier/templates/django/settings_psh.py index c2a6082..a841266 100644 --- a/platformifier/templates/django/settings_psh.py +++ b/platformifier/templates/django/settings_psh.py @@ -51,7 +51,7 @@ def decode(variable): # Database service configuration, post-build only. if os.getenv("{{ .Assets.EnvPrefix }}_RELATIONSHIPS") and {{ .Assets.EnvPrefix }}_DB_RELATIONSHIP: {{ lower .Assets.EnvPrefix }}_relationships = decode(os.getenv("{{ .Assets.EnvPrefix }}_RELATIONSHIPS")) - if {{ .Assets.EnvPrefix }}_DB_RELATIONSHIP in {{ .Assets.EnvPrefix }}_relationships: + if {{ .Assets.EnvPrefix }}_DB_RELATIONSHIP in {{ lower .Assets.EnvPrefix }}_relationships: db_settings = {{ lower .Assets.EnvPrefix }}_relationships[{{ .Assets.EnvPrefix }}_DB_RELATIONSHIP][0] engine = None if (