Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix appends to ALLOWED_HOSTS should be string instead of list

Will Ho83344f748f03
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)