mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #26029 -- Removed DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings.
This also removes django.core.files.storage.get_storage_class(). Per deprecation timeline.
This commit is contained in:
@@ -25,22 +25,6 @@ Django provides convenient ways to access the default storage class:
|
||||
: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.
|
||||
|
||||
When called without the ``import_path`` parameter ``get_storage_class``
|
||||
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
|
||||
===============================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user