Websocket server for django application

I have a django application that needs to be deployed under Apache HTTP Server, I also need to click the event on the client web browser in real time. I'm new to python, can anyone suggest that some kind of web server server could work in Python + Django + Apache?

+8
python django tornado websocket
source share
2 answers

Django is a synchronous web server. this means that you cannot directly use websocket. But you have the opportunity to make websocket in Django.

Use the full python stack for this: use Tornado and Django. You can follow the post

Use Nodejs + socket.io + broker messages: Follow this type tutorial

You will find more resources to help you do this with node.js and socket.io than with a tornado.

+8
source share

With the new update (Django 1.10), Django now supports websites.

Read this article for more information: In depth with Django channels - the future of real-time applications in Django

0
source share

All Articles