Multi-tenancy on Django 3.0 with MariaDB and separate databases

Viewed 751

We are building a new system on Django 3.0 that requires multi-tenancy with separate databases, and we also intend to use Maria DB. I have already gone through a well-known multi-tenancy solution django-tenant-schemas that offers multi-tenancy with single PostgreSQL database and multiple schemas - so that doesn't solve our problem (Django 3.0 + Maria DB & multiple databases). From what I have understood, it is non-trivial to make changes in Django ORM to change the DB, so I am looking for some other solution.

How can I have multi-tenancy with DJango 3.0 if we want to use multiple database with Maria DB?

Note: We need 'separate databases' due to data residency laws in most countries where this SaaS app would be used.

1 Answers
Related