Development of an internal social media platform with personalised dashboards for students
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.

__init__.py 392B

123456789101112
  1. from django.conf import settings
  2. from django.utils.module_loading import import_string
  3. def default_storage(request):
  4. """
  5. Callable with the same interface as the storage classes.
  6. This isn't just default_storage = import_string(settings.MESSAGE_STORAGE)
  7. to avoid accessing the settings at the module level.
  8. """
  9. return import_string(settings.MESSAGE_STORAGE)(request)