python - Django: How to create a multilingual website -
i wanto create multilingual website in django , tried using django-parler when want add object admin, admin doesn't show translatedfield
here part of models:
class movie(translatablemodel): translations = translatedfields( synopsis=redactorfield( verbose_name=u'sinopsis', allow_file_upload=false, allow_image_upload=true, ), data_sheet=redactorfield( verbose_name=u'sinopsis', allow_file_upload=true, allow_image_upload=true, ), ) name = models.charfield(verbose_name='nombre', max_length=250)
and parler settings:
parler_default_language = 'es' parler_languages = { 1: ( {'code': 'es', }, {'code': 'en', }, ), 'default': { 'fallback': 'es', 'hide_untranslated': false, } }
wiki
Comments
Post a Comment