How can I show a please wait loading message from a django view?
I have a Django view that takes significant time to perform calculations on a large dataset
a more straightforward approach is to generate a wait page with your gif etc. and then use the javascript
window.location.href = 'insert results view here';
to switch to the results view which starts your lengthy calculation. The page wont change until the calculation is finished. When it finishes, then the results page will be rendered.