Django Display Loaing… Please Wait Modal on Long Process Django.How

Author avatar wrote on 30/05/2022

partials/_loading-modal.html

{% load static%}

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

We stand with Ukraine