From dd5406576ed6d738990cd4675584a0c5849c66ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Kecskem=C3=A9ty?= Date: Thu, 14 Dec 2023 04:32:13 +0100 Subject: [PATCH] Do not use deprecated setting --- health_check/storage/backends.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/health_check/storage/backends.py b/health_check/storage/backends.py index 0d966d67..f264b3b9 100644 --- a/health_check/storage/backends.py +++ b/health_check/storage/backends.py @@ -1,8 +1,8 @@ import uuid import django -from django.conf import settings from django.core.files.base import ContentFile +from django.core.files.storage import default_storage if django.VERSION >= (4, 2): from django.core.files.storage import InvalidStorageError, storages @@ -81,4 +81,4 @@ def check_status(self, subset=None): class DefaultFileStorageHealthCheck(StorageHealthCheck): storage_alias = "default" - storage = settings.DEFAULT_FILE_STORAGE + storage = default_storage