python - Displaying a temporary message while loading a page - Django admin -


i'm using django admin , i'm looking showing message user while page loading (something like: please wait...). there way show temporary message if user clicked 'admin:appname_modelname_changelist' link (load object change).
i'm not using ajax transfer request.
i'm looking ajaxstart , ajaxcomplete functions in order control start/end loading page.

you override admin template , add javascript onclick handler on link show loader (with jquery example).

overriding admin templates: https://docs.djangoproject.com/en/1.9/ref/contrib/admin/#overriding-admin-templates

jquery onclick handler: https://api.jquery.com/click/


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -