From b0e2c4c6157bd57b11c02b5f26e26ca3d2322fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Kecskem=C3=A9ty?= Date: Sat, 22 Jun 2024 16:31:37 +0200 Subject: [PATCH] Drop deprecated `DEFAULT_FILE_STORAGE` setting usage (#408) Use the `default_storage` proxy instead. --- 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 5920b133..ec58f8b8 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): class DefaultFileStorageHealthCheck(StorageHealthCheck): storage_alias = "default" - storage = settings.DEFAULT_FILE_STORAGE + storage = default_storage