Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I feel your pain, having had to go through the same research over the past few months. I haven't had time to deal with proper documentation yet but I have a working example of using Django with <a href="http://socket.io" rel="noreferrer">socket.io</a> and <a href="https://github.com/MrJoes/tornadio" rel="noreferrer">tornadio</a> at <a href="http://bitbucket.org/virtualcommons/vcweb" rel="noreferrer">http://bitbucket.org/virtualcommons/vcweb</a> - I was hoping to set up direct communication from the Django server-side to the tornadio server process using queues (i.e., logic in a django view pushes a message onto a queue that then gets handled by tornadio which pushes a json encoded version of that message out to all interested subscribers) but haven't implemented that part fully yet. The way I've currently gotten it set up involves:</p> <ol> <li>An <a href="https://bitbucket.org/virtualcommons/vcweb/src/6f16f4433a5f/vcweb/vcweb-tornadio.py" rel="noreferrer">external tornado (tornadio) server</a>, running on another port, accepting socket.io requests and working with Django models. The only writes this server process makes to the database are the chat messages that need to be stored. It has full access to all Django models, etc., and all real-time interactions need to go directly through this server process. </li> <li>Django template pages that require real-time access include the socket.io javascript and establish direct connections to the tornadio server</li> </ol> <p>I looked into <a href="http://orbited.org" rel="noreferrer">orbited</a>, <a href="http://hookbox.org" rel="noreferrer">hookbox</a>, and <a href="http://www.gevent.org" rel="noreferrer">gevent</a> but decided to go with socket.io + tornado as it seemed to allow me the cleanest javascript + python code. I could be wrong about that though, having just started to learn Python/Django over the past year.</p>
    singulars
    1. This table or related slice is empty.
    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. 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