Skip to content

Commit

Permalink
Drop deprecated DEFAULT_FILE_STORAGE setting usage (#408)
Browse files Browse the repository at this point in the history
Use the `default_storage` proxy instead.
  • Loading branch information
KOliver94 committed Jun 22, 2024
1 parent 251b156 commit b0e2c4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions health_check/storage/backends.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -81,4 +81,4 @@ def check_status(self):

class DefaultFileStorageHealthCheck(StorageHealthCheck):
storage_alias = "default"
storage = settings.DEFAULT_FILE_STORAGE
storage = default_storage

0 comments on commit b0e2c4c

Please sign in to comment.