Skip to content

Breaks with Django 5.1 | ImportError: 'get_storage_class' from 'django.core.files.storage' #641

@blu3f1r3

Description

@blu3f1r3

With the new Django 5.1 version the latest version breaks:

app-1  |   File "/app/apps/core/fields.py", line 20, in <module>
app-1  |     from easy_thumbnails.files import get_thumbnailer
app-1  |   File "/usr/local/lib/python3.11/site-packages/easy_thumbnails/files.py", line 13, in <module>
app-1  |     from easy_thumbnails import engine, exceptions, models, utils, signals, storage
app-1  |   File "/usr/local/lib/python3.11/site-packages/easy_thumbnails/storage.py", line 43, in <module>
app-1  |     thumbnail_default_storage = get_storage()
app-1  |                                 ^^^^^^^^^^^^^
app-1  |   File "/usr/local/lib/python3.11/site-packages/easy_thumbnails/storage.py", line 18, in get_storage
app-1  |     from django.core.files.storage import get_storage_class
app-1  | ImportError: cannot import name 'get_storage_class' from 'django.core.files.storage' (/usr/local/lib/python3.11/site-packages/django/core/files/storage/__init__.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions