I have a question related to Django handling different databases. I have this doubt because, I need to create a database for different countries. And, my webapp has one dns, and only one. I want to be able to handle different countries with the same dns.
I have this questions in my mind but, I don't know which one is the best practice for this kind of situations...
1- In a Django Project create different apps, for each country and use a Database Router to differentiate. As: if model._meta.app_label == 'customer_data': return 'customer_db'
2 - Store a db name on session and when user logs in, sends every requests to the database related to the user. (don't have any clue of how to do this)
I don't know what else I can do, besides the ones I described above. Any senior django developer, can help me with this question? and, if possible provide articles which can help me understand better... Thank you.