From 884bf48a4e9e1c79fa832b7043cb9578f41e9bf8 Mon Sep 17 00:00:00 2001 From: Finn-Thorben Sell Date: Wed, 9 Dec 2020 18:50:33 +0100 Subject: [PATCH] make FS_URL and TMP_FS_URL also configurable --- imagetagger/imagetagger/settings.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/imagetagger/imagetagger/settings.py b/imagetagger/imagetagger/settings.py index 86a12263..c103d64b 100644 --- a/imagetagger/imagetagger/settings.py +++ b/imagetagger/imagetagger/settings.py @@ -137,9 +137,6 @@ class Base(Configuration): EXPORT_SEPARATOR = '|' - FS_URL = os.path.dirname(BASE_DIR) - TMP_FS_URL = 'temp://imagetagger' - IMAGE_PATH = 'images' # the path to the folder with the imagesets relative to the filesystem root (see FS_URL) TMP_IMAGE_PATH = 'images' # the path to use for temporary image files relative to the temp filesystem (see TMP_FS_URL) TOOLS_PATH = 'tools' # the path to the folder with the tools relative to the filesystem root (see FS_URL) @@ -219,6 +216,8 @@ def post_setup(cls): TOOL_UPLOAD_NOTICE = values.Value(environ_prefix='IT', default='') ENABLE_ZIP_DOWNLOAD = values.BooleanValue(environ_prefix='IT', default=is_in_docker()) USE_NGINX_IMAGE_PROVISION = values.BooleanValue(environ_prefix='IT', default=is_in_docker()) + FS_URL = values.Value(environ_prefix='IT', default=path_join(os.path.dirname(BASE_DIR), 'data')) + TMP_FS_URL = values.Value(environ_prefix='IT', default='temp://imagetagger') SENTRY_REPORTING_ENABLED = values.BooleanValue(environ_prefix='IT', default=False) SENTRY_DSN = values.Value(environ_prefix='IT', environ_required=SENTRY_REPORTING_ENABLED)