{% for message in messages %}
    <div class="alert {{ message.tags }} alert-dismissible message-alert fade show border-0 m-4" role="alert">
        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"><svg> ... </svg></button>
        {{ message }} </button>
    </div> 
{% endfor %}