nephila / djangocms-blog

django CMS blog application - Support for multilingual posts, placeholders, social network meta tags and configurable apphooks
https://djangocms-blog.readthedocs.io
BSD 3-Clause "New" or "Revised" License
403 stars 190 forks source link

KeyError at /es/admin/djangocms_blog/blogconfig/1/change/ #651

Closed jib-72 closed 3 years ago

jib-72 commented 3 years ago

Description

Hi, I m working with Django CMS 3.7 and I just update to the last version Django CMS BLOG 1.2.1 and when I press the button Edit configuration in the toolbar I get this error /es/admin/djangocms_blog/blogconfig/1/change/ django_cms_blog_error The cms languages is settings like this CMS_LANGUAGES = {

Customize this

1: [
    {
        'code': 'es',
        'name': gettext('Español'),
        'redirect_on_fallback': True,
        'public': True,
        'hide_untranslated': False,
    },
    {
        'code': 'en',
        'name': gettext('English'),
        'redirect_on_fallback': True,
        'public': True,
        'hide_untranslated': False,
    },
    {
        'code': 'ca',
        'name': gettext('Catalá'),
        'redirect_on_fallback': True,
        'public': True,
        'hide_untranslated': False,
    },            

],
'default': {
    'fallbacks': ['en', 'es', 'ca'],
    'redirect_on_fallback': True,
    'public': True,
    'hide_untranslated': False,
},

}

Steps to reproduce

Try to

Versions

Environment: Django CMS BLOG Version: 1.2.1 Django CMS Version: 3.7.5 Django Version: 3.0.9 Python Version: 3.7.5

Expected behaviour

Press button Edit configuration

Actual behaviour

Additional information

thanks , any help will be apreciate

yakky commented 3 years ago

@jib-72 which was the previous version you updated from? which command have you used to update the packages? which is the django-appdata version? <- this is likely the issue, make sure to have the latest django-appdata which fix some compatibility issues with django 3.0+

jib-72 commented 3 years ago

Hi yakky, Sorry for the delay in answering. I delete the records in the plugin database and update django-appdata and the new version of django-cms 3.8. It seems to work. Thank you very much for your recommendations.

yakky commented 3 years ago

@jib-72 thanks for the update, glad it worked!