From 6f5c1ac4e1510a91eb9267dc097e16c5bbb3440d Mon Sep 17 00:00:00 2001 From: maphy-psd Date: Sat, 19 Aug 2017 12:39:25 +0200 Subject: [PATCH] add FORCE_SCRIPT_NAME setting --- src/paperless/settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 2e525ae41..fdbbc2a7d 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -47,7 +47,11 @@ _allowed_hosts = os.getenv("PAPERLESS_ALLOWED_HOSTS") if _allowed_hosts: ALLOWED_HOSTS = _allowed_hosts.split(",") - +FORCE_SCRIPT_NAME = None +_force_script_name = os.getenv("PAPERLESS_FORCE_SCRIPT_NAME") +if _force_script_name: + FORCE_SCRIPT_NAME = _force_script_name + # Application definition INSTALLED_APPS = [