From: Will Ho Date: Thu, 27 Apr 2023 19:28:19 +0000 (+0800) Subject: Fix appends to ALLOWED_HOSTS should be string instead of list X-Git-Tag: v1.14.3~1^2~18^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3218%2Fhead;p=thirdparty%2Fpaperless-ngx.git Fix appends to ALLOWED_HOSTS should be string instead of list --- diff --git a/src/paperless/settings.py b/src/paperless/settings.py index ce498ec58a..122806516c 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -425,7 +425,7 @@ if _paperless_url: if ["*"] != ALLOWED_HOSTS: # always allow localhost. Necessary e.g. for healthcheck in docker. - ALLOWED_HOSTS.append(["localhost"]) + ALLOWED_HOSTS.append("localhost") if _paperless_url: ALLOWED_HOSTS.append(_paperless_uri.hostname)