2👍
Syntax for rendering validation errors:
{{ form.fieldname.errors }}
This will show validation errors in a list format and if you want to render them as text then use:
{{ form.fieldname.errors.as_text }}
Source:stackexchange.com
2👍
Syntax for rendering validation errors:
{{ form.fieldname.errors }}
This will show validation errors in a list format and if you want to render them as text then use:
{{ form.fieldname.errors.as_text }}