1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Refs #26029 -- Doc'd django.core.files.storage.default_storage.

This commit is contained in:
Jarosław Wygoda 2022-08-10 11:16:44 +02:00 committed by Mariusz Felisiak
parent e0ae1363ec
commit 9e7cb27a5b

View File

@ -4,10 +4,10 @@ File storage API
.. module:: django.core.files.storage
Getting the current storage class
Getting the default storage class
=================================
Django provides two convenient ways to access the current storage class:
Django provides convenient ways to access the default storage class:
.. class:: DefaultStorage
@ -16,6 +16,11 @@ Django provides two convenient ways to access the current storage class:
:setting:`DEFAULT_FILE_STORAGE`. :class:`DefaultStorage` uses
:func:`~django.core.files.storage.get_storage_class` internally.
.. data:: default_storage
:data:`~django.core.files.storage.default_storage` is an instance of the
:class:`~django.core.files.storage.DefaultStorage`.
.. function:: get_storage_class(import_path=None)
Returns a class or module which implements the storage API.