New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django's get_storage_class
is deprecated in 4.2 (Django 5.1 compat.)
#1187
Comments
get_storage_class
is deprecated in 4.2get_storage_class
is deprecated in 4.2
Hi @AngellusMortis thanks for the report. The progress here would be to make a compatibility shim using the new approach on 4.2+, which we'd drop when that's the minimum supported version. Is that something you'd like to have a go at doing? |
This won't be deprecated until 5.1, so I don't think this should block Django 4.2 compat just yet |
Yep. It's just a warning at this stage. File ".../compressor/storage.py", line 115, in _setup
self._wrapped = get_storage_class(settings.COMPRESS_STORAGE)()
File ".../django/core/files/storage/__init__.py", line 32, in get_storage_class
warnings.warn(GET_STORAGE_CLASS_DEPRECATED_MSG, RemovedInDjango51Warning)
django.utils.deprecation.RemovedInDjango51Warning: django.core.files.storage.get_storage_class is deprecated in favor of using django.core.files.storage.storages. |
Hi - I've just had a go at creating a shim in #1216, please let me know if there are any issues with it! |
#1244 was a duplicate. Copying comment from there:
|
get_storage_class
is deprecated in 4.2get_storage_class
is deprecated in 4.2 (Django 5.1 compat.)
Got the following warning running tests in Django 4.2:
The text was updated successfully, but these errors were encountered: