diff options
| author | Jarosław Wygoda <jaroslaw@wygoda.me> | 2022-08-10 11:16:44 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-08-10 12:23:13 +0200 |
| commit | 9e7cb27a5b7363239d1db02d29fe12efdf25b899 (patch) | |
| tree | b1c674c947523d5f57067c40ad2f977c7fa4aa4c /docs/ref/files | |
| parent | e0ae1363ec2aa71945be26f869cafd4181ccbc95 (diff) | |
Refs #26029 -- Doc'd django.core.files.storage.default_storage.
Diffstat (limited to 'docs/ref/files')
| -rw-r--r-- | docs/ref/files/storage.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/ref/files/storage.txt b/docs/ref/files/storage.txt index 8cae580767..c09a46fa64 100644 --- a/docs/ref/files/storage.txt +++ b/docs/ref/files/storage.txt @@ -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. |
