Skip to content

Commit

Permalink
make FS_URL and TMP_FS_URL also configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
lilioid committed Dec 9, 2020
1 parent 6b679fe commit 884bf48
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions imagetagger/imagetagger/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 884bf48

Please sign in to comment.