That's correct - Django middleware only runs on HTTP request objects, and
so doesn't work in a WebSocket context. The recommended alternative is to
write ASGI middleware for this purpose.
Unfortunately, there is not good documentation on this yet, but you can see
a bit about it here, in the authen
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:
https://github.com/systori/systori/blob/dev/systori/apps/company/middleware.py
Now, for channels I‘ve noticed that there is no usual request, right?
So
2 matches
Mail list logo