8000 [BUG] django-cms v3.11 is not compatible with Django 5.1+ (Invalid import of `get_storage_class`) · Issue #8101 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content < 8000 /span>
[BUG] django-cms v3.11 is not compatible with Django 5.1+ (Invalid import of get_storage_class) #8101
Closed
@bartTC

Description

@bartTC

Description

Django-CMS v3 is marked to be compatible with latest Django, however it fails with an ImportError on Django 5.1. The related function get_storage_class was deprecated for a while and removed in Django 5.1.

Traceback (most recent call last):
  File "/venv/bin/manage.py", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  ...

  File "/app/project/myapp/apps.py", line 4, in <module>
    from cms.utils.i18n import force_language
  File "/venv/lib/python3.13/site-packages/cms/utils/__init__.py", line 3, in <module>
    from django.core.files.storage import get_storage_class
ImportError: cannot import name 'get_storage_class' from 'django.core.files.storage' (/venv/lib/python3.13/site-packages/django/core/files/storage/__init__.py)

Replicate

pip install django==5.1.* django-cms==3.11.*

Above exception is immediately thrown if you import anything from cms.utils.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0