Wednesday, September 23, 2020

MultiValueDictKeyError at

Hello i have this problem :
MultiValueDictKeyError at 
The view is:
matricola = request.POST['matricola']

The form is:

matricola = forms.CharField(label='Matricola',  required = False, max_length=100, widget = forms.TextInput(attrs={'readonly':'readonly'}))

the template is 

{{ form }}

Why i get this error? 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fe51409d-d219-472c-9ac6-fcaf017e268en%40googlegroups.com.

No comments:

Post a Comment