title: Django form submit for multiple urls (or) views
body: <p>Is there any way to use a submited form data to apply all the view,
  For example,</p>
  
  <p>I have a form in one page,</p>
  
  <pre><code>&lt;form method="POST" autocomplete="off" action="{% url 'a_view' %}"&gt;
     &lt;label for="Region"&gt;Region&lt;/label&gt;
     &lt;input class="form-control" placeholder="Enter Region" type="text" id="Region"&gt;
     &lt;button class="btn btn-primary"&gt;Apply&lt;/button&gt;
  </code></pre>
  
  <p>And have a other form in another page with same form inputs,</p>
  
  <pre><code>&lt;form method="POST" autocomplete="off" action="{% url 'b_view' %}"&gt;
     &lt;label for="Region"&gt;Region&lt;/label&gt;
     &lt;input class="form-control" placeholder="Enter Region" type="text" id="Region"&gt;
     &lt;button class="btn btn-primary"&gt;Apply&lt;/button&gt;
  </code></pre>
  
  <p>From this form I get a text for filtering the data for different models,after I have to send to the different view.
  what I want to do is,
   when the form is applied,it should apply the form to all the views in my app.</p>
  
  <p>In view.py,</p>
  
  <pre><code>def aview(request):
      if request.method == 'POST':
            sbc = MTD.pdobjects.all()
            df = sbc.to_dataframe().reset_index(drop=True)
            filter_list = request.POST.get('regionwiselist', None)
            df=df[df['RGN'].isin(filter_list)]
            df1=pandas.pivot_table(df,index='MKU',columns='Vertical',values=['Sales_Value','Unit_Sales_Price'],aggfunc='sum').replace(numpy.nan,0)
            df1.reset_index(inplace=True)
            dict1=df1.transpose().to_dict()
            col=list(df1.columns)
            context={
                    'MKU_value':dict1,
                    'MKU':col
            }
            return render(request, 'aview.html', context)
      else:
          sbc = MTD.pdobjects.all()
          df = sbc.to_dataframe().reset_index(drop=True)
          df=df[df['RGN'].isin(filter_list)]
          df1=pandas.pivot_table(df,index='MKU',columns='Vertical',values=['Sales_Value','Unit_Sales_Price'],aggfunc='sum').replace(numpy.nan,0)
          df1.reset_index(inplace=True)
          dict1=df1.transpose().to_dict()
          col=list(df1.columns)
          context={
                  'MKU_value':dict1,
                  'MKU':col
          }
          return render(request, 'aview.html', context)
  def bview(request):
      if request.method == 'POST':
            sbc = MTD.pdobjects.all()
            df = sbc.to_dataframe().reset_index(drop=True)
            filter_list = request.POST.get('regionwiselist', None)
            df=df[df['RGN'].isin(filter_list)]
            df1=pandas.pivot_table(df,index='Customer',columns='Salesman', values=['Sales_Value','Unit_Sales_Price'],aggfunc='sum').replace(numpy.nan,0)
            df1.reset_index(inplace=True)
            dict1=df1.transpose().to_dict()
            col=list(df1.columns)
            context={
                    'MKU_value':dict1,
                    'MKU':col
            }
            return render(request, 'bview.html', context)
      else:
          sbc = MTD.pdobjects.all()
          df = sbc.to_dataframe().reset_index(drop=True)
          df=df[df['RGN'].isin(filter_list)]
          df1=pandas.pivot_table(df,index='Customer',columns='Saleman',values=['Sales_Value','Unit_Sales_Price'],aggfunc='sum').replace(numpy.nan,0)
          df1.reset_index(inplace=True)
          dict1=df1.transpose().to_dict()
          col=list(df1.columns)
          context={
                  'MKU_value':dict1,
                  'MKU':col
          }
          return render(request, 'bview.html', context)
  </code></pre>
  
  <p>we don't use forms.py, instead we use pandas dataframe for table to dataframe and filters.</p>
  
  <p>Please help me to sort out,
  Thanks.</p>