def get_storage(request):
storage_model = oauth2_settings.storage_model<EOL>user_property = oauth2_settings.storage_model_user_property<EOL>credentials_property = oauth2_settings.storage_model_credentials_property<EOL>if storage_model:<EOL><INDENT>module_name, class_name = storage_model.rsplit('<STR_LIT:.>', <NUM_LIT:1>)<EOL>module = importlib.import_module(module_name)<EOL>storage_model_class = getattr(module, class_name)<EOL>return storage.DjangoORMStorage(storage_model_class,<EOL>user_property,<EOL>request.user,<EOL>credentials_property)<EOL><DEDENT>else:<EOL><INDENT>return dictionary_storage.DictionaryStorage(<EOL>request.session, key=_CREDENTIALS_KEY)<EOL><DEDENT>
Gets a Credentials storage object provided by the Django OAuth2 Helper
    object.

    Args:
        request: Reference to the current request object.

    Returns:
       An :class:`oauth2.client.Storage` object.