a I have been watching a video which uses the following code to show errors.
{% if form.errors %}
<div class="alert alert-danger">
{{form.errors.title.as_text}}
</div>
{% endif %}
But when I use it no errors show
If I use:
{% if form.errors %}
<div class="alert alert-danger">
{% for error in form.errors %}
<p>{{ error }}</p>
{% endfor %}
</div>
{% endif %}
I get a single word eg. 'email' but the whole error text does not display.
It works fine on the video,
Could anyone tell me what i am doing wrong?