{% comment %} SweetAlert Messages Component Usage: Include this template in any page that needs to display Django messages as SweetAlert toasts. Add this just before the closing tag or in your extra_js block. Example: {% include 'components/sweetalert_messages.html' %} {% endcomment %} {% if messages %} {% endif %}