title: Django submit a form->redirect to a new page->auto update new page
body: <p>Ok as the title describes, Im trying to create a webpage(test.html) where in after the form is submitted it should redirect me to a new page(say status.html).And after this page loads It should shows some continuous updates on the submitted task. I was able to accomplish this on a single page , when Im trying to redirect this to a new page Im out of luck. </p>
  
  <p>test.html</p>
  
  <pre><code>&lt;form action="status/" method="POST" id="start-form"&gt;
  .....
  &lt;input type="submit" value="Start" class="tbutton"&gt;
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def status_page(request):
  print("Inside redirect")
  return HttpResponseRedirect(request,'my_app/status.html')
  </code></pre>
  
  <p>url.py </p>
  
  <pre><code>url(r'^test/status/$', 'status_page'),
  </code></pre>
  
  <p>jav.js</p>
  
  <pre><code>$('#start-form').on('submit',function(event){
  event.preventDefault();    
  status(); 
  }); 
  function status() { 
  $.ajax({
      url : "status_page/", // the endpoint
      type : "POST", // http method
      data:{' ': '',}, // data sent with the post req
  headers: {Accept: "application/json"},  
     success : function(json) {
  //on success display the rendered page,so what coding is needed here?   
  },
      error : function(xhr,errmsg,err) {
  //error handling code    }
      });
   }
  </code></pre>
  
  <p>On execution the new page is not loaded, but if I bypass javascript then the form action gets executed and the new page rendering through the view happens. But with JavaScript, on success what happens ? how does the return statement from the view get captured in the success and how is the page displayed?
  I need to use javascript and AJAX as once the new page is loaded I need to display continuous updates on the same page. So basically how do I implement redirection to a new page with the above code using javascript and Django? Any help will be truly appreciated!       </p>