I\'m using a sort of long polling in my Django app to return status messages about a long operation to the client as it progresses. I do this by returning an HttpResponse ob
Try:
import itertools def my_long_operation(): return itertools.chain(do_something(), do_something_else())