Django - show loading message during long processing
问题 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. While the process loads, I would like to present the user with a feedback message e.g.: spinning loading animated gif or similar. 回答1: After trying the two different approaches suggested by Brandon and Murat, Brandon's suggestion proved the most successful. Create a wrapper template that includes the javascript from http://djangosnippets