From 296532b73502759983b07f4f08d25c81dce72811 Mon Sep 17 00:00:00 2001 From: Philip Guyton Date: Mon, 17 Jun 2024 12:28:38 +0100 Subject: [PATCH] 5.0.6-0 to 5.0.9.0 Configuration Backup file upload fails #2846 Thanks to Hooverdan96 for diagnosing this issue. Our last major Djando update assumed a `default` STORAGES index that appears to not default to existing. Provide the `default` STORAGES config entry to appease Django and fix the consequently broken config backup file upload function. --- src/rockstor/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rockstor/settings.py b/src/rockstor/settings.py index 3694d6bc3..3b5f93614 100644 --- a/src/rockstor/settings.py +++ b/src/rockstor/settings.py @@ -203,8 +203,11 @@ "huey.contrib.djhuey", ) -# STATICFILES_STORAGE = "pipeline.storage.PipelineManifestStorage" +# https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-STORAGES STORAGES = { + "default": { + "BACKEND": "django.core.files.storage.FileSystemStorage", + }, "staticfiles": { "BACKEND": "pipeline.storage.PipelineManifestStorage", },