partials/_loading-modal.html
include it in base.html
# include it base.html
{% include 'partials/_loading-modal.html' %}
In templates
# For forms:
add the class “show-loading-after-submit” to any form you want to show the loader
# For URLS:
add the class “show-loading-after-click” to any url (a element) you want to show the loader
Resources
https://stackoverflow.com/questions/8317219/django-show-loading-message-during-long-processing