Debian Codegraph @

django/contrib/messages/storage/__init__.py

raw
1 from django.conf import settings
2 from django.utils.module_loading import import_string
3
4
5 def 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)