Flash Messages
Transient notifications via put_flash() — Phoenix-style flash messages for djust.
Flash Levels
Trigger different flash message levels. Messages auto-dismiss after a few seconds.
views.pypython
# In your event handler:
self.put_flash("success", "Settings saved!")
self.put_flash("error", "Something went wrong.")
self.clear_flash()Settings Form
dj-cloak
dj-mounted
This panel uses dj-cloak (hidden until connected) and fires dj-mounted on load.
Template Integration
Add the flash tag to your template to render notifications with ARIA support and auto-dismiss.
template.htmlhtml
{% load djust_flash %}
{% dj_flash %}
{# Messages appear with auto-dismiss and ARIA live regions #}
{# Supports: info, success, warning, error levels #}