If you make a long-running http request to a Django application, can you send a second request to communicate with it? Can you share data between requests?
Pylons has a concept of application globals. Top level variables in node.js are all application globals. How can I do this in Django?
This is generally considered a bad idea, so I’m going to show you how it would usually be done. Most of the time, long-running tasks should be forked to the background, and updates from that task get placed in a global store (such as your database, memcached, or similar). This keeps your front-end server from getting bogged down with too many requests.
Using memcached (or any of the django cache backends), your code might look something like:
Simply load the latter on an AJAX timer, and plop it into the page as needed.