{% for category, message in get_flashed_messages(with_categories=true) %}
{{ message }}
{% endfor %}
{{ form.csrf_token() }} {% for field in form if field.name != "csrf_token" %}
{{ field.label() }}
{{ field }} {% for error in field.errors %} {{ error }} {% endfor %}
{% endfor %}