Django and jQuery — pulling info from a long-running process
Another sample of how to integrate Django and jQuery.
This starts a function in views.py that takes a long time to finish. It sets a session variable so that another function can report on the situation. We use jquery and ajax to ‘pull’ that data from Django so as to provide a progress report.