MCPcopy
hub / github.com/django/django / default_storage

Function default_storage

django/contrib/messages/storage/__init__.py:5–12  ·  view source on GitHub ↗

Callable with the same interface as the storage classes. This isn't just default_storage = import_string(settings.MESSAGE_STORAGE) to avoid accessing the settings at the module level.

(request)

Source from the content-addressed store, hash-verified

3
4
5def default_storage(request):
6 """
7 Callable with the same interface as the storage classes.
8
9 This isn't just default_storage = import_string(settings.MESSAGE_STORAGE)
10 to avoid accessing the settings at the module level.
11 """
12 return import_string(settings.MESSAGE_STORAGE)(request)

Callers 2

process_requestMethod · 0.90
get_levelFunction · 0.90

Calls 1

import_stringFunction · 0.90

Tested by

no test coverage detected