mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
fix: use default storage backend for Maint Mode
This commit is contained in:
parent
a41eca1cb3
commit
bbe14690f1
@ -172,12 +172,6 @@ if MEDIA_ROOT is None:
|
|||||||
print("ERROR: INVENTREE_MEDIA_ROOT directory is not defined")
|
print("ERROR: INVENTREE_MEDIA_ROOT directory is not defined")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Options for django-maintenance-mode : https://pypi.org/project/django-maintenance-mode/
|
|
||||||
MAINTENANCE_MODE_STATE_FILE_PATH = os.path.join(
|
|
||||||
config_dir,
|
|
||||||
'maintenance_mode_state.txt',
|
|
||||||
)
|
|
||||||
|
|
||||||
# List of allowed hosts (default = allow all)
|
# List of allowed hosts (default = allow all)
|
||||||
ALLOWED_HOSTS = CONFIG.get('allowed_hosts', ['*'])
|
ALLOWED_HOSTS = CONFIG.get('allowed_hosts', ['*'])
|
||||||
|
|
||||||
@ -870,6 +864,7 @@ MARKDOWNIFY_BLEACH = False
|
|||||||
|
|
||||||
# Maintenance mode
|
# Maintenance mode
|
||||||
MAINTENANCE_MODE_RETRY_AFTER = 60
|
MAINTENANCE_MODE_RETRY_AFTER = 60
|
||||||
|
MAINTENANCE_MODE_STATE_BACKEND = 'maintenance_mode.backends.DefaultStorageBackend'
|
||||||
|
|
||||||
# Are plugins enabled?
|
# Are plugins enabled?
|
||||||
PLUGINS_ENABLED = _is_true(get_setting(
|
PLUGINS_ENABLED = _is_true(get_setting(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user