Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.10/site-packages/django/core/files/storage/__init__.py: 92%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

12 statements  

1from django.conf import DEFAULT_STORAGE_ALIAS 

2from django.utils.functional import LazyObject 

3 

4from .base import Storage 

5from .filesystem import FileSystemStorage 

6from .handler import InvalidStorageError, StorageHandler 

7from .memory import InMemoryStorage 

8 

9__all__ = ( 

10 "FileSystemStorage", 

11 "InMemoryStorage", 

12 "Storage", 

13 "DefaultStorage", 

14 "default_storage", 

15 "InvalidStorageError", 

16 "StorageHandler", 

17 "storages", 

18) 

19 

20 

21class DefaultStorage(LazyObject): 

22 def _setup(self): 

23 self._wrapped = storages[DEFAULT_STORAGE_ALIAS] 

24 

25 

26storages = StorageHandler() 

27default_storage = DefaultStorage()