Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Sorry but django handles async requests very very poorly as it is wsgi. You'll be limited by your number of parallel instance if you have to handle real users. The best solution is to use tornado or node.js.</p> <p>Tornado handles websocket and long polling brilliantly. Here is my wrapper to allow getting user and sessions from a parallel tornado thread:</p> <p><a href="https://gist.github.com/1939836" rel="nofollow">https://gist.github.com/1939836</a></p> <p>It's adapted from a more complex source, I didn't tested this gist, it's long polling but tornado handlse WebSocket as well.</p> <p><a href="http://www.tornadoweb.org/documentation/websocket.html" rel="nofollow">http://www.tornadoweb.org/documentation/websocket.html</a></p> <p><strong>update:</strong></p> <p>Avoid django-websocket for production use. Even the main developer recommends against it.</p> <p>I recommend Tornado because it's an awesome technology which is damningly faster/lighter than django. It may be useful for some simple cases. You'll need to configure apache/nginx anyway so, at least get "faster web pages" feature available.</p> <p>Django-Desktop-Notification focuses on chrome browser and require node.js.</p> <p><strong>update (01/2016):</strong></p> <p>Mozilla gave money to django in late 2015 to solve this particular issue, the current most promizing implementation made by a django core dev is this one:</p> <p><a href="https://github.com/andrewgodwin/channels" rel="nofollow">https://github.com/andrewgodwin/channels</a></p> <p>It will probably be part of django 1.11 or 2.0</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload