Skip to content
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

DeprecationWarning from get_storage_class #616

Open
lachlancannon opened this issue Apr 19, 2023 · 1 comment
Open

DeprecationWarning from get_storage_class #616

lachlancannon opened this issue Apr 19, 2023 · 1 comment

Comments

@lachlancannon
Copy link

As of Django 4.2. Not urgent, but a fix would be nice so we don't have to suppress the warning.

@lachlancannon
Copy link
Author

e.g.

  File "/srv/venv/lib/python3.11/site-packages/easy_thumbnails/files.py", line 512, in get_thumbnail
    self.save_thumbnail(thumbnail)
  File "/srv/venv/lib/python3.11/site-packages/easy_thumbnails/files.py", line 531, in save_thumbnail
    self.thumbnail_storage.save(filename, thumbnail)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/venv/lib/python3.11/site-packages/django/utils/functional.py", line 266, in inner
    self._setup()
  File "/srv/venv/lib/python3.11/site-packages/easy_thumbnails/storage.py", line 27, in _setup
    self._wrapped = get_storage_class(
                    ^^^^^^^^^^^^^^^^^^
  File "/srv/venv/lib/python3.11/site-packages/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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant