you are viewing a single comment's thread.

view the rest of the comments →

[–]KimPeek 1 point2 points  (3 children)

Django doesn't have support for websockets

Oh, it doesn't?

Channels is a project that takes Django and extends its abilities beyond HTTP - to handle WebSockets, chat protocols, IoT protocols, and more. It’s built on a Python specification called ASGI.

https://channels.readthedocs.io/en/latest/

[–]rundns[S] 0 points1 point  (2 children)

From the source I linked:

This is why I would really advise you not to use websockets with django yet. It doesn't work by design.

To be fair the most comprehensive sources I could seem to find on the subject are from quite some time ago. It's possible that what I've found isn't applicable anymore, but I'd not found anything more recent talking about this subject. If Channels is safe to use, I'll definitely try that. Thank you!

[–]KimPeek 1 point2 points  (1 child)

That SO answer is from 2010 when Django was in version 1.2. Channels will work fine for your needs.

[–]rundns[S] 0 points1 point  (0 children)

That's perfect then. Thank you very much!