We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c4d03f3 + b0e2c4c commit fefb40eCopy full SHA for fefb40e
health_check/storage/backends.py
@@ -1,8 +1,8 @@
1
import uuid
2
3
import django
4
-from django.conf import settings
5
from django.core.files.base import ContentFile
+from django.core.files.storage import default_storage
6
7
if django.VERSION >= (4, 2):
8
from django.core.files.storage import InvalidStorageError, storages
@@ -81,4 +81,4 @@ def check_status(self):
81
82
class DefaultFileStorageHealthCheck(StorageHealthCheck):
83
storage_alias = "default"
84
- storage = settings.DEFAULT_FILE_STORAGE
+ storage = default_storage
0 commit comments