I am making a website with django now and I want to implement a live notification feature like the one on facebook or SE.
I did some research and it seems although ther
Django itself is build in blocking manner, i.e. with synchronous approach. So, you cannot open persistent websocket with django app, as it will block entire django thread.
If you want to enable notification/chat within django project environment, i would recommend to use centrifuge. It is written in python, but async (non-blocking) framework is used: tornado.
But, you don't need to even know how it works, as it provides simple REST api to communicate with it.
Simplified workflow, check docs for more details:
centrifuge
at same server, as your django project (or on another but with low latency between them)I've already tried it and it works!