1 2 3 4 5
<ul id="messages"> {% for message in messages %} <li>{{ message|e }}</li> {% endfor %} </ul>