Creating a Loading Screen in Django

I have searched all over for a simple solution to this problem, but have yet to find anything. Please let me know how you would approach this.

I have a Django project and an app in which of the views for the app calls a function that takes a significant amount of time (upwards of 5-10 min) to run, so I would like to display a loading screen temporarily, and then have the results of the function display.

I've looked into using JavaScript, IFrames, and other solutions, but nothing has yet to work.

Please keep in mind that I'm a beginner/intermediate programmer, but I would like to know if there's a simple solution to what I thought was a simple and common problem, or if I need something more complex.