From ae3d3d0295c970995c68da5c2f6c6ebc3b9a40ee Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 20 Mar 2019 22:50:09 +0100 Subject: [PATCH] fix TypeError: can only concatenate list (not "str") to list --- passbook/core/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbook/core/settings.py b/passbook/core/settings.py index 26cb4d014..7d56d38d0 100644 --- a/passbook/core/settings.py +++ b/passbook/core/settings.py @@ -34,7 +34,7 @@ SECRET_KEY = CONFIG.get('secret_key') # SECURITY WARNING: don't run with debug turned on in production! DEBUG = CONFIG.get('debug') INTERNAL_IPS = ['127.0.0.1'] -ALLOWED_HOSTS = CONFIG.get('domains', []) + CONFIG.get('primary_domain') +ALLOWED_HOSTS = CONFIG.get('domains', []) + [CONFIG.get('primary_domain')] SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') LOGIN_URL = 'passbook_core:auth-login'