It is true that I was accessing the error message incorrectly in
python - it should be
my_form.errors['date'] and it is set. However the doc says you can
access that same value with form.name_of_field.errors in a template
like this:
<form action="/contact/" method="POST">
<div class="fieldWrapper">
{{ form.date.errors }}
<label for="id_date">Date:</label>
{{ form.date}}
But it is not showing up in my view. I also tried form.errors.date
but that does not work either.
Any help appreciated.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---