title: How to get radio button value from FORM in view.py file
body: <p>I wanna get the radio button value in view.py file, I'm getting all the values except for radio button value</p>
  
  <p>I tried to get data using POST and GET method but both didnt work for me
  //HTML code</p>
  
  <pre><code>&lt;label class="col-12 col-sm-2"&gt;Rating&lt;/label&gt;
  &lt;input type="radio" class="form-control radio-inline col-sm-1 mt-1" name="radoption" value=" 1"&gt;1
  &lt;input type="radio" class="form-control radio-inline col-sm-1 mt-1" name="radoption" value=" 2" checked&gt;2
  &lt;input type="radio" class="form-control radio-inline col-sm-1 mt-1" name="radoption" value=" 3"&gt;3
  &lt;input type="radio" class="form-control radio-inline col-sm-1 mt-1" name="radoption" value=" 4"&gt;4
  &lt;input type="radio" class="form-control radio-inline col-sm-1 mt-1" name="radoption" value=" 5"&gt;5
  </code></pre>
  
  <p>// View.py Code</p>
  
  <pre><code>if request.method == "POST":
      radoption = str(request.POST["radoption"])
      return redirect("/")
  </code></pre>
  
  <p>TypeError at /rating
  User() got an unexpected keyword argument 'radoption'</p>