MCPcopy
hub / github.com/django/django / __init__

Method __init__

django/contrib/staticfiles/finders.py:219–231  ·  view source on GitHub ↗
(self, storage=None, *args, **kwargs)

Source from the content-addressed store, hash-verified

217 storage = None
218
219 def __init__(self, storage=None, *args, **kwargs):
220 if storage is not None:
221 self.storage = storage
222 if self.storage is None:
223 raise ImproperlyConfigured(
224 "The staticfiles storage finder %r "
225 "doesn't have a storage class "
226 "assigned." % self.__class__
227 )
228 # Make sure we have a storage instance here.
229 if not isinstance(self.storage, (Storage, LazyObject)):
230 self.storage = self.storage()
231 super().__init__(*args, **kwargs)
232
233 def find(self, path, find_all=False):
234 """

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected