Skip to content

Commit 7ededd2

Browse files
radwonmatthiask
authored andcommitted
Use the new STORAGES setting in Django 4.2
Use the new STORAGES setting in Django 4.2 In Django 4.2 the django.core.files.storage.get_storage_class() function is deprecated as well as the STATICFILES_STORAGE setting in favor of STORAGES["staticfiles"]. Use django.core.files.storage.storages to get the configured storage class for static files instead. For Django versions prior to 4.2 keep using the django.core.files.storage.get_storage_class() function for backwards compatibility. Fixes #1758
1 parent bbba2f8 commit 7ededd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/changes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Change log
44
Pending
55
-------
66

7+
* Added support for the new STORAGES setting in Django 4.2 for static files.
8+
79
4.0.0 (2023-04-03)
810
------------------
911

0 commit comments

Comments
 (0)