title: Reading Excel File in Django uploaded using html form
body: <p>I am learning django framework and trying to read an excel file </p>
  
  <p>I want to upload file using html form(POST Method) and want to read in python for calculations so what should I do really confused  ?
  Code Is Here 
  form.html</p>
  
  <pre><code>&lt;form method="POST" action="minmax_ans.html"&gt;{% csrf_tocken %}
     {{form.as_p}}
     &lt;p&gt;&lt;b&gt;&lt;h2&gt;Upload File&lt;/h2&gt;&lt;/b&gt;&lt;p&gt;
     &lt;input type="file" name="file" value="{{ source.title }}"&gt;
     &lt;input type="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def upload_file(request):
      if request.method == 'POST':
          form = UploadFileForm(request.POST, request.FILES)
          if form.is_valid():
              handle_uploaded_file(request.FILES['file'])
              return HttpResponseRedirect('/success/url/')
      else:
          form = UploadFileForm()
      return render(request, 'upload.html', {'form': form})
  </code></pre>
  
  <p><strong>I want to do some calculations using data in the file uploaded through html form if it is an excel file and display the result on result.html which I have not created yet because I cannot read the file</strong> </p>