Skip to content

Commit b0e2c4c

Browse files
authored
Drop deprecated DEFAULT_FILE_STORAGE setting usage (#408)
Use the `default_storage` proxy instead.
1 parent 251b156 commit b0e2c4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

health_check/storage/backends.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import uuid
22

33
import django
4-
from django.conf import settings
54
from django.core.files.base import ContentFile
5+
from django.core.files.storage import default_storage
66

77
if django.VERSION >= (4, 2):
88
from django.core.files.storage import InvalidStorageError, storages
@@ -81,4 +81,4 @@ def check_status(self):
8181

8282
class DefaultFileStorageHealthCheck(StorageHealthCheck):
8383
storage_alias = "default"
84-
storage = settings.DEFAULT_FILE_STORAGE
84+
storage = default_storage

0 commit comments

Comments
 (0)