These are chat archives for django/django

29th
Jul 2018
Nathan Kirui
@Nkirui
Jul 29 2018 09:41

@MilanRgm ....from django.contrib.auth import authenticate
user = authenticate(username='john', password='secret')
if user is not None:

# A backend authenticated the credentials

else:

# No backend authenticated the credentials