Got Django to work with cometd. Now I can harness the power of twisted with the Rapid development promise of Django
and powered by cometd.
…
February 16, 2007
Django and Cometd
Cross Domain Comet
I have been playing around with the twisted cometd in a cross domain configuration. Alex Russel (From the dojotoolkit foundation) in his article mentioned that he got it to work in a cross domain setting. The technique used to do this was to initially use the jsonp transport in the callback polling mode and fallback to long polling. I have already spent 2 days now trying to understand why it doesnot work. I am not a great Javascript hacker but I know that Javascript doesnot support threading yet. Asynchronous updates are possible if you use iframes or xmlhttp. So how does Alex’s technique work ( I havent seen it work yet ??).
I dont think I will spend anymore time on this. My current alternative is : Django+Twisted. I have to thank the django community for such a great toolkit. I will now try to build comet support directly into the django app…. will keep posted