Friday, May 4, 2018

Django-channels request depending Middleware

Hey everybody,

We are using a Middleware to inject postgresql schemas into queries based on a subdomain. You can have a look how it's done here:

Now, for channels I've noticed that there is no usual request, right?
So, if I'm connecting a WS it doesn't hit the Middleware. 
Are there any guides or docs available or any recommendations how to solve this properly for channels?

Thx,
Marius

No comments:

Post a Comment