You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123456789101112 |
- from django.conf import settings
- from django.utils.module_loading import import_string
-
-
- def default_storage(request):
- """
- 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.
- """
- return import_string(settings.MESSAGE_STORAGE)(request)
|