Search code examples
djangoupgradedjango-cmsdjango-1.9

django-cms==3.2.3 migration from Django 1.5.12 to 1.9.5 choices error


While working a migration of an older Django project I ran into this error after running:

python manage.py check

cms.UserSettings.language: (fields.E005) 'choices' must be an iterable containing (actual value, human readable name) tuples.

Has anyone run into this issue? Unfortunately I have to wait until I am not on the corp network before I can ask the IRC channels.


Solution

  • http://docs.django-cms.org/en/latest/reference/configuration.html#cms-languages

    It turns out I missed this important setting in my settings.py file:

    CMS_LANGUAGES = {
        'default': {
           'fallbacks': ['en',],
            'redirect_on_fallback':True,
            'public': True,
            'hide_untranslated': False,
        }
    }
    

    Thanks to brianpck for a point in the right direction though.