[Django]-Django data model for multi language project

2👍

If you want to store your website content in the database you have obviously to store also translations. Basically duplicate text fields in various languages (as you did).
Django-transmeta does the same thing for you, and its main advantage is that you can add for example a new language for all your models (or add support for a new field) modifing one line of code (that is actually abstraction layer from the same you did), and syncronizing database. I think it’s a good choice.

For the rest I use the Django i18n features, take a look at this, it’s a good choice for hard-coded content of your website.

1👍

This question is quite old, but for those who might be looking, make sure to also check django-modeltranslation. It does model translation very simple and it’s pretty actively maintained. Docs here

Leave a comment