title: django : unable to call a python function by clicking submit button
body: <p>Trying to call Installation function when we click a submit button on HTML Page and taking the data from HTML only,i am new to django.
  Help me out..!</p>
  
  <p>Views File:</p>
  
  <pre><code>from .forms import Details
  from django import forms
  from django.shortcuts import render
  from django.http import HttpResponseRedirect
  from . import installation
  
  def output(request):
      if request.method == 'POST':
          details=Details(request.POST)
          if details.is_valid():
              Obj=details.cleaned_data
              path=Obj['Path']
              device_type=Obj['Device']
              image_version=Obj['Version']
              return installation()
      else:
          raise TypeError
  </code></pre>
  
  <p>App/urls.py File:</p>
  
  <pre><code>from django.conf.urls import url
  from django.contrib import admin
  from . import views
  
  urlpatterns = [
      url(r'^admin/', admin.site.urls),
      url(r'',views.output,{'template_name':'home_page.html'}),
  ]
  </code></pre>
  
  <p>Forms.py File :</p>
  
  <pre><code>from django import forms
  
  class Details(forms.Form):
      Device=forms.CharField(required=True, label='Device_Type', max_length=32)
      Path=forms.FileField(required=True, label='Path_to_install_build')
      Version=forms.CharField(required=True, label='Version_type',max_length=32)
  </code></pre>