Try:
form = AuthenticationForm(data=request.POST)
More Related Contents:
- Django Forms: if not valid, show form with error message
- Django form field choices, adding an attribute
- Applying bootstrap styles to django forms
- How to update an object from edit form in Django?
- Django ModelChoiceField: filtering query set and setting default value as an object
- Django ModelForm: What is save(commit=False) used for?
- Django: How do I add arbitrary html attributes to input fields on a form?
- Create Custom Error Messages with Model Forms
- Django/jQuery Cascading Select Boxes?
- Inline Form Validation in Django
- Initial populating on Django Forms
- Django multi-select widget?
- How do I add a Foreign Key Field to a ModelForm in Django?
- Django form with choices but also with freetext option?
- Add class to form field Django ModelForm
- How can I restrict Django’s GenericForeignKey to a list of models?
- Grouped CheckboxSelectMultiple in Django template
- Django – Overriding the Model.create() method?
- Django templates: verbose version of a choice
- Django unique_together with nullable ForeignKey
- How to set css class of a label in a django form declaration?
- resize image on save
- Django, ModelChoiceField() and initial value
- Django Forms: pass parameter to form
- ModelForm with OneToOneField in Django
- How to limit file types on file uploads for ModelForms with FileFields?
- Django: access the parent instance from the Inline model admin
- Django – forms.FileField() initial value
- Get type of Django form widget from within template
- Saving Many To Many data via a modelform in Django