Hacker News new | ask | show | jobs
by sebastian 5042 days ago
How possible would it be to use something like Spark or Derby.js's Racer in a django site?

I like the realtime concept/behavior but I want to keep developing in django.

1 comments

For the real-time data synchronization part, try dropping dotCloud JS into your Django app: http://js.dotcloud.com

It doesn't do live templating, though.

But, how much would I need to write to update the data in realtime as it changes in the backend?
Something like this:

    var people = dotcloud.sync.synchronize('people');
    people.observe(function(type, change) {
        // Update template here
    });
There's a live demo here: http://jsfiddle.net/q2q8b/31/