diff options
| author | Jarosław Wygoda <jaroslaw@wygoda.me> | 2022-09-11 17:33:47 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-12 09:58:36 +0100 |
| commit | 32940d390a00a30a6409282d314d617667892841 (patch) | |
| tree | 3912c57c1b553833a8a798d92a33147fb87b3f0b /docs/ref/files/storage.txt | |
| parent | 1ec3f0961fedbe01f174b78ef2805a9d4f3844b1 (diff) | |
Refs #26029 -- Deprecated DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings.
Diffstat (limited to 'docs/ref/files/storage.txt')
| -rw-r--r-- | docs/ref/files/storage.txt | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/docs/ref/files/storage.txt b/docs/ref/files/storage.txt index d5daccf834..47a5788574 100644 --- a/docs/ref/files/storage.txt +++ b/docs/ref/files/storage.txt @@ -18,9 +18,9 @@ Django provides convenient ways to access the default storage class: .. class:: DefaultStorage :class:`~django.core.files.storage.DefaultStorage` provides - lazy access to the current default storage system as defined by - :setting:`DEFAULT_FILE_STORAGE`. :class:`DefaultStorage` uses - :func:`~django.core.files.storage.get_storage_class` internally. + lazy access to the default storage system as defined by ``default`` key in + :setting:`STORAGES`. :class:`DefaultStorage` uses + :data:`~django.core.files.storage.storages` internally. .. data:: default_storage @@ -32,11 +32,16 @@ Django provides convenient ways to access the default storage class: Returns a class or module which implements the storage API. When called without the ``import_path`` parameter ``get_storage_class`` - will return the current default storage system as defined by - :setting:`DEFAULT_FILE_STORAGE`. If ``import_path`` is provided, - ``get_storage_class`` will attempt to import the class or module from the - given path and will return it if successful. An exception will be - raised if the import is unsuccessful. + will return the default storage system as defined by ``default`` key in + :setting:`STORAGES`. If ``import_path`` is provided, ``get_storage_class`` + will attempt to import the class or module from the given path and will + return it if successful. An exception will be raised if the import is + unsuccessful. + + .. deprecated:: 4.2 + + The ``get_storage_class()`` function is deprecated. Use + :data:`storages` instead The ``FileSystemStorage`` class =============================== |
