views.py
def select_value(request):
value = request.GET['value']
template = 'apps/selected_value.html'
return render(request, template, {'values': value})
<select name="value">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<p>you have selected value {{values}}</p>
i am new to Django and i did lots of searching and for get the selected value from html to django views. i tried with above html and django viwes, still i am getting below. can any one help me on this? thanks in advance.
getting MultiValueDictKeyErrorat /value/ 'value'