1 {% if messages %}<div id="messages">{% for message in messages %}{{ message }}{% endfor %}</div>{% endif %}
2 {% if form.errors %}<div id="errors">Please correct the errors below</div>{% endif %}