def djangouser_auth(username, password, request):
    """
    Check username and password against
    django.contrib.auth.models.User
    """
    from django.contrib.auth.models import User
    try:
        user = User.objects.get(username=username)
        if user.check_password(password):
            request.user = user
            return True
        else:
            return False
    except User.DoesNotExist:
        return False
