1.7.18. 오류 드롭 (up)
예: 모든 오류 가져오기
{% for error in form.errors %}
attribute: {{ error.attribute }}
...
{% endfor %}1.7.18.1. 방법
1.7.18.1.1. 비어 있습니까?
오류가 없는 경우 true를 반환합니다.
{% if form.errors == empty %}
Congratulations! You have no errors!
{% endif %}1.7.18.1.2. 현재?
몇 가지 오류가 있는 경우 true를 반환합니다.
{% if form.errors == present %}
Sorry, there were some errors.
{% endif %}