2009-12-10 00:57:23 +08:00
|
|
|
from django.conf import settings
|
2013-02-03 05:58:02 +08:00
|
|
|
from django.utils.module_loading import import_by_path as get_storage
|
2009-12-10 00:57:23 +08:00
|
|
|
|
|
|
|
|
|
|
|
# Callable with the same interface as the storage classes i.e. accepts a
|
|
|
|
# 'request' object. It is wrapped in a lambda to stop 'settings' being used at
|
|
|
|
# the module level
|
|
|
|
default_storage = lambda request: get_storage(settings.MESSAGE_STORAGE)(request)
|