From 73af9552ecd4406268568b191342d5027fd3b65f Mon Sep 17 00:00:00 2001 From: maphy-psd Date: Sun, 20 Aug 2017 14:13:23 +0200 Subject: [PATCH] getenv has "None" as default @MasterofJOKers in PR#255 --- src/paperless/settings.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index fdbbc2a7d..95d16bb66 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -47,10 +47,7 @@ _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 +FORCE_SCRIPT_NAME = os.getenv("PAPERLESS_FORCE_SCRIPT_NAME") # Application definition