Solved...must add AUTHENTICATION_BACKENDS = 
["django.contrib.auth.backends.ModelBackend"]
to settings.py

On Thursday, April 21, 2016 at 5:20:38 PM UTC-5, Chris Seberino wrote:
>
> I can't seem to get authenticate to return a User object even when 
> password is correct.
>
> I dropped into a Django shell to recreate the problem.....
>
> >>> js
> <User: jsmith>
>
> >>> js.username
> 'jsmith'
>
> >>> js.check_password("test")
> True
>
> >>> django.contrib.auth.authenticate(username = 'jsmith', password = 
> "test")
> >>> 
>
> WHY DIDN'T THAT WORK ???
>
> Thanks!
>
> Chris 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5be97572-f59c-4e0f-8409-dc3d8b5dc401%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to