From 83344f748f03ae27c5482833f9a4ff56f3325b90 Mon Sep 17 00:00:00 2001 From: Will Ho Date: Fri, 28 Apr 2023 03:28:19 +0800 Subject: [PATCH] Fix appends to ALLOWED_HOSTS should be string instead of list --- src/paperless/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index ce498ec58..122806516 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)