On 12 jan, 04:03, "Lin Tao\(EXT-VanceInfo/Beijing\)" <lin_...@vanceinfo.com> wrote: > Hi, > > I encounter this problem that I failed to login to my app with correct > username and password. I'm wondering if there is something wrong with my > login form. Here is what it looks like:
(snip code - seems mostly ok) > > Every time I tried to login with correct username and password, it would go > back to login page with error message "Your username or password is > incorrect". > > I guess there is something wrong with authenticate function. I guess someone would have noticed this long ago. The first thing I'd try would be to fire the django shell and run this: # > from django.contrib import auth # > user = auth.authenticate(username="yourusername", password="yourpassword") # > print user -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.