title: Save HTML Form Data To Database - Django
body: <p>I want to update database values by HTML Forms</p>
  
  <p><strong>HTML form :</strong></p>
  
  <pre><code>&lt;form action="/school_manager/students/{{student.id}}/update/" method="post" accept-charset="utf-8"&gt;
          {% csrf_token %}
          &lt;label for="update_name"&gt;Edit Name :&lt;/label&gt;&lt;br/&gt;
          &lt;input type="text" name="update_name" id="update_name" placeholder="Enter A Name" /&gt;
          &lt;input type="submit" value="Update"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>views.py :</strong></p>
  
  <pre><code>def update_student_detail(request, student_id):
     list = get_object_or_404 ( student, pk=student_id)
     if request.method == 'POST' :
         student.First_Name = request.POST.get('update_name','')
     list.save()
     return HttpResponseRedirect('/school_manager/students/' + student_id)
  </code></pre>
  
  <p>When I run the program and type a word in text box, after submit it does not work. I can't see any change to my database.</p>