Closed sam2332 closed 1 year ago
@sam2332 What versions of django CMS and Django are you running?
@fsbraun Thank you for responding here are the versions
Name: Django
Version: 4.2.7
Name: django-cms
Version: 3.11.4
if you dont mind me asking, what version is considered stable with your release cycle?
djangocms-versioning only works with django CMS v4+. The latest stable version is django CMS 3.11.4 which has long-term support until April 2026. For more see https://docs.django-cms.org/
python manage.py migrate djangocms_versioning
nty$ python manage.py makemigrations Traceback (most recent call last): File "{folder}/InghamCounty/manage.py", line 22, in
main()
File "{folder}/InghamCounty/manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "{folder}/env/lib/python3.10/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "{folder}/env/lib/python3.10/site-packages/django/core/management/init.py", line 416, in execute
django.setup()
File "{folder}/env/lib/python3.10/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "{folder}/env/lib/python3.10/site-packages/django/apps/registry.py", line 116, in populate
app_config.import_models()
File "{folder}/env/lib/python3.10/site-packages/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "{folder}/env/lib/python3.10/site-packages/djangocms_versioning/models.py", line 13, in
from .conditions import (
File "{folder}/env/lib/python3.10/site-packages/djangocms_versioning/conditions.py", line 7, in
from .helpers import get_latest_draft_version, version_is_unlocked_for_user
File "{folder}/env/lib/python3.10/site-packages/djangocms_versioning/helpers.py", line 6, in
from cms.models import Page, PageContent, Placeholder
ImportError: cannot import name 'PageContent' from 'cms.models' ({folder}/env/lib/python3.10/site-packages/cms/models/init.py)