I\'m trying to save a object to my database, but it\'s throwing a MultiValueDictKeyError error.
MultiValueDictKeyError
The problems lies within the form, the is_private<
is_private<
Another thing to remember is that request.POST['keyword'] refers to the element identified by the specified html name attribute keyword.
request.POST['keyword']
name
keyword
So, if your form is:
then, request.POST['keyword'] and request.POST['results'] will contain the value of the input elements keyword and results, respectively.
request.POST['results']
results