[Answered ]-Beginner Django: Authenticating/logging in a User

2👍

Try form = AuthenticationForm(data = request.POST)

From the django git for AuthenticationForm:

def __init__(self, request=None, *args, **kwargs):
            """The 'request' parameter is set for custom auth use by subclasses.
                The form data comes in via the standard 'data' kwarg.`

            """
👤Tito

Leave a comment