{% for message in admin.messages %} <div class="{{ message.scope|e }} alert">{{ message.message }}</div> {% endfor %}