On Wed, Apr 06, 2022 at 08:59:09AM -0700, Vasanth Mohan wrote: > 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? > 2. Is there a way to create admin users so that they have access to > specific databases?
You probably want to create a custom database router[1]. [1] https://docs.djangoproject.com/en/4.0/topics/db/multi-db/#automatic-database-routing -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20220415180748.GC15520%40fattuba.com.

