What library to use for comets in Django?

I plan to write a comet application in Django, but as far as I can see articles on this topic are few, and the available comet libraries may not necessarily be used with Django (especially the development environment).

So far, the best options I've seen (with one article on how to get started in Django) are APE and Orbited. The orbit, however, is still not actively developing (easy_install does not even work, the domains have expired), and the APE should work fine, but how to make it work with python manage.py runserver?

So my question is: if you are writing a comet application in Django, which library is most often used, if any?

+5
source share
1 answer

My solution for this would be to write all the models and the main site in Django, but use a different server for ajax, which is more suitable for long polls or persistent sockets.

For example: SocketTornad.IO https://github.com/SocketTornadIO/SocketTornad.IO

Inside the tornado socket.io server, the idea was to import the required Django models to work with the data needed for comet / websocket representations.

Doing this with manage.py or any simple django server seems very difficult, and it would be much easier to let the torornado socket.io server run the specialized comet / websocket for you.

But I have not implemented it yet, since the basic non comet ajax has met our needs. This is just a concept that has been considered.

+1
source

All Articles