Re: Django Channels and multi-tenant will this be a world of hurt?

2024-01-27 Thread David Emanuel Sandoval
Just like the one they posted, but with a few minor changes: async def __call__(self, scope, receive, send): and: return await self.inner( dict(scope, schema_name=schema_name, multitenant=True), receive, send ) Also, check if AuthMiddleware is using the channels.auth.get_user() function within

Re: Django Channels and multi-tenant will this be a world of hurt?

2024-01-27 Thread David Emanuel Sandoval
To identify the tenant i used a middleware that extract the tenant from the domain. El sáb, 27 ene 2024, 10:28, Nagaraja escribió: > Y cnt u use pusher instead of channels > > On Sat, 27 Jan, 2024, 4:40 pm 'Sebastián García' via Django users, < > django-users@googlegroups.com> wrote: > >> Hi, I'

Re: Django Channels and multi-tenant will this be a world of hurt?

2024-01-27 Thread Nagaraja
Y cnt u use pusher instead of channels On Sat, 27 Jan, 2024, 4:40 pm 'Sebastián García' via Django users, < django-users@googlegroups.com> wrote: > Hi, I'm reviving this old thread... do you know of any other solution to > the one proposed by @Ahmed Ishtiaque > > Thanks > El domingo, 24 de febrer

Re: Django Channels and multi-tenant will this be a world of hurt?

2024-01-27 Thread 'Sebastián García' via Django users
Hi, I'm reviving this old thread... do you know of any other solution to the one proposed by @Ahmed Ishtiaque Thanks El domingo, 24 de febrero de 2019 a la(s) 9:13:30 p.m. UTC-3, Ahmed Ishtiaque escribió: > @N Muchai, > > I don't know if you've found a workaround to this, but here's mine if >