On Wed, Oct 1, 2008 at 3:55 PM, Denis Morozov <[EMAIL PROTECTED]> wrote:
>
> Try
> {% if form.errors %}
> <p>Your username and password didn't match.
> Please try again.</p>
> {% endif %}
>
Note this is not an error in the book but rather an indication that the book
was written assuming an older version of Django. has_errors, which is
apparently what is in the book, was the oldforms way of making this check.
Assuming you are actually using Django 1.0, you'll need to keep in mind that
some things have changed (forms & admin definitions are two biggies) between
what the book is describing and the version you are using. In cases where
the book seems to be steering you wrong you'll probably want to consult the
online docs, which will better match the code you are running.
Karen
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---