It looks like you configured your CMS_CACHE_DURATIONS setting as an integer instead of a dict with a 'content' key pointing to an integer[0].
In other words you did CMS_CACHE_DURATIONS = 42 Instead of CMS_CACHE_DURATIONS = {'content': 42} Cheers, Simon [0] http://docs.django-cms.org/en/latest/reference/configuration.html#std:setting-CMS_CACHE_DURATIONS Le jeudi 13 décembre 2018 09:25:36 UTC-5, Gilles Zoratti a écrit : > > Dear everyone, > i'm new in Django cms community, > I had an issue with the following command "python manage.py migrate". > > Could it possible for you to help me on this ? > > >> (venv) project@project-web:~/work.project.www$ python manage.py migrate >> >> Traceback (most recent call last): >> >> File "manage.py", line 10, in >> >> execute_from_command_line(sys.argv) >> >> File >> >> "/home/project/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", >> >> >> line 364, in execute_from_command_line >> >> utility.execute() >> >> File >> >> "/home/project/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", >> >> >> line 338, in execute >> >> django.setup() >> >> File >> >> "/home/project/venv/local/lib/python2.7/site-packages/django/__init__.py", >> >> line 27, in setup >> >> apps.populate(settings.INSTALLED_APPS) >> >> File >> >> "/home/project/venv/local/lib/python2.7/site-packages/django/apps/registry.py", >> >> >> line 116, in populate >> >> app_config.ready() >> >> File >> >> "/home/project/venv/local/lib/python2.7/site-packages/django/contrib/admin/apps.py", >> >> >> line 23, in ready >> >> self.module.autodiscover() >> >> File >> >> "/home/project/venv/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py", >> >> >> line 26, in autodiscover >> >> autodiscover_modules('admin', register_to=site) >> >> File >> >> "/home/project/venv/local/lib/python2.7/site-packages/django/utils/module_loading.py", >> >> >> line 50, in autodiscover_modules >> >> import_module('%s.%s' % (app_config.name, module_to_search)) >> >> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module >> >> > >> __import__(name) >> >> File >> >> "/home/project/venv/local/lib/python2.7/site-packages/cms/admin/__init__.py", >> >> >> line 11, in >> >> plugin_pool.plugin_pool.discover_plugins() >> >> File >> >> "/home/project/venv/local/lib/python2.7/site-packages/cms/plugin_pool.py", >> >> line 33, in discover_plugins >> >> invalidate_cms_page_cache() >> >> File >> >> "/home/project/venv/local/lib/python2.7/site-packages/cms/cache/__init__.py", >> >> >> line 69, in invalidate_cms_page_cache >> >> version = _get_cache_version() >> >> File >> >> "/home/project/venv/local/lib/python2.7/site-packages/cms/cache/__init__.py", >> >> >> line 20, in _get_cache_version >> >> _set_cache_version(1) >> >> File >> >> "/home/project/venv/local/lib/python2.7/site-packages/cms/cache/__init__.py", >> >> >> line 33, in _set_cache_version >> >> get_cms_setting('CACHE_DURATIONS')['content'] >> >> TypeError: 'int' object has no attribute '__getitem__' >> >> (venv) project@project-web:~/work.medor.www$ >> >> > > In advance Thank So Much > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e04a0811-1f80-49f8-a796-07e98927b0cd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.