Threading and Async Views

2023-03-07 Thread Vasanth Mohan
Hello, I'm currently building a multitenant service on django that uses a separate DB configuration per tenant. The frontend adds a unique header along with their requests so that the app can identify the tenant and select the DB to be used. The catch is the tenant reference is stored as a thr

Using Multiple databases

2022-04-06 Thread Vasanth Mohan
Hello, I'm building a PoC for a multi-tenant app where I'm trying to use the same schema across multiple databases with Django instance. I've got a couple of questions and I'd be happy to have some input 1. Is there a way to define the *using()* function to use with Models via a lib/middleware