def getData(self, request):
    last_update = request.args['last_update']
print('LAST UPDATE: ', last_update)
new_messages = self.dbpool.runQuery('SELECT * FROM chat_message WHERE time > ?'
    , request.last_update)
return new_messages.addCallback(self.gotRows, request)
I'm trying to make a long-polling chat app using Twisted and jQuery (with Django). How do I pass queries back to the JS?