Closed
Description
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
.