So I should be using:
form = AuthenticatioForm(request)
It seems odd that the signature for various form aren't the same, at least
in respect to *args. **kwags I can understand being different. Regardless I
wanted to highlight a gotcha that wasn't immediately obvious.
Also, I received no erro
>From the docs for AuthenticationForm: "Takes request as its first
positional argument, which is stored on the form instance for use by
sub-classes."
https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.forms.AuthenticationForm
On Thursday, February 14, 2019 at 7:47:23
Hi,
I have just been following the Django documention on forms:
https://docs.djangoproject.com/en/2.1/topics/forms/
And I was having an issue with validating the posted data in the view code.
I came across this Stack Overflow post :
https://stackoverflow.com/questions/45824046/djangos-authent
3 matches
Mail list logo