From 1c2f3cf9af86bafdbd58cafa7884b38f6cc76506 Mon Sep 17 00:00:00 2001 From: puuu Date: Fri, 14 May 2021 18:14:59 +0900 Subject: [PATCH] Fix serving static files under root_path --- src/paperless/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 0e9ab53f3..39504fe54 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -148,7 +148,8 @@ LOGIN_URL = BASE_URL + "accounts/login/" WSGI_APPLICATION = 'paperless.wsgi.application' ASGI_APPLICATION = "paperless.asgi.application" -STATIC_URL = os.getenv("PAPERLESS_STATIC_URL", "static/") +STATIC_URL = os.getenv("PAPERLESS_STATIC_URL", BASE_URL + "static/") +WHITENOISE_STATIC_PREFIX = "/static/" # TODO: what is this used for? TEMPLATES = [