Hi,
The premise is this: If the form validation fails, I want to display
all the validation error messages on the top of the page in a special
div tag that I have created.
{% for field, message in form.errors.items()%}
{{message}}
{% endfor %}
returns a compilation error.
I don't want to display both the field name and the error message, but
only the error message. If I were to display
{{form.errors}} in the html page, this is what i get.
* town
o Please enter town.
* postal_code
o Please enter postal code.
I would like to display only the error messages. Is there anything I
am doing wrong?
Thanks,
Karthik
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---