[Answered ]-How to separate languages in Django Model / Database

2πŸ‘

I have alreay made a project like this. I have used one table with mixed languages, with a column to specify which language it is. I have no problem with this implementation.

An other approach I had thought is to create dynamically a table like content_ and to fill in. But very boring (you have to manage id dependancy with other tables) and not necessary for me.

Have you got a fixed number language ?

πŸ‘€elhostis

0πŸ‘

I don’t know really what β€˜s best way.
You can serialize a dictionary, for example save this dic in your database:

{
  'en': 'Book',
  'ge': 'booch',
  ...
}
πŸ‘€Vahid Kharazi

Leave a comment