Monday, August 30, 2010

Re: django.contrib.auth.views.login

On Mon, Aug 30, 2010 at 2:34 AM, ashy <ashwinmorey@gmail.com> wrote:

I am using django.contrib.auth.views.login for the login view. The
code for 'registration/login.html' is as below:

<html>
 <head>
   <title>User Login</title>
 </head>
 <body>
   <h1>User Login</h1>
   {% if form.has_errors %}

It looks like you are working from an old book or using some old code, likely originally written for Django .96 or earlier. has_errors is a very old method for checking for form errors. It was replaced, prior to Django 1.0, with errors. If you are working from a book, you probably want to switch to one that covers at least Django 1.0 level code; there were some major changes made just before 1.0 and working from a book that assumes an older level is likely going to be frustrating.

Karen
--
http://tracey.org/kmt/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment