title: Django render is not refreshing page after a form submission
body: <p>After almost a full day trying to make things work, I resign... I need some help because I don't understand where I'm doing things the wrong way.
  I searched SO and stumbled on many answers about redirection and so on...</p>
  
  <p>Let me give you some context :
  I have a simple form where one can upload a file, so far, it's working well. I want the user to be redirected to another page after the upload is successful and this is where it fails :'(</p>
  
  <p>My views.py :</p>
  
  <pre><code># Create your views here.
  def thank_you(request):
      data = {'text': 'Thank you for your file'}
      print('thank you blablabla')
      print(data)
      return render(request, 'app/thank_you.html', data)
  
  
  def home(request):
      if request.method == 'POST':
          form = UploadFileForm(request.POST, request.FILES)
          if form.is_valid():
              uploaded_file = request.FILES['file']
              new_file = UploadFile(file=uploaded_file)
              new_file.save()
              return redirect(reverse(thank_you))
      else:
          form = UploadFileForm()
  
      data = {'form': form}
      return render(request, 'app/drop_file.html', data)
  </code></pre>
  
  <p>I do see the 2 prints in the 'thank_you' function, meaning that the redirect is working as expected. But the view doesn't refresh and I'm stuck.
  And if I try to access the url directly (going to <a href="http://.../thank_you/" rel="nofollow noreferrer">http://.../thank_you/</a> ) it does show correctly.</p>
  
  <p>The thank_you.html :</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Upload done&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;h1&gt;Hello !&lt;/h1&gt;
  &lt;h1&gt;{{ text }} &lt;/h1&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The form looks like that :</p>
  
  <pre><code>    &lt;form id="my-dropzone" class="dropzone" action="{% url 'home' %}" method="post" enctype="multipart/form-data"&gt;
          {% csrf_token %}
      &lt;/form&gt;
      &lt;button id="submit-all"&gt;
          Submit all files
      &lt;/button&gt;
      &lt;script type="text/javascript"&gt;
  
          Dropzone.options.myDropzone = {
              // Prevents Dropzone from uploading dropped files immediately
              autoProcessQueue : false,
  
              init : function() {
                  var submitButton = document.querySelector("#submit-all")
                  myDropzone = this;
  
                  submitButton.addEventListener("click", function() {
                      myDropzone.processQueue();
                      // Tell Dropzone to process all queued files.
                  });
  
                  // You might want to show the submit button only when
                  // files are dropped here:
                  this.on("addedfile", function() {
                      // Show submit button here and/or inform user to click it.
                  });
  
                  this.on("queuecomplete", function() {
                      console.log('should we redirect ?');
                  });
  
              }
          };
      &lt;/script&gt;
  </code></pre>
  
  <p>And my urls.py file :</p>
  
  <pre><code>url(r'^$', views.home, name='home'),
  url(r'thank_you/$', views.thank_you, name='thank_you'),
  </code></pre>
  
  <p>Nothing out of the ordinary I guess.</p>
  
  <p>Even if I change the 'home' to :</p>
  
  <pre><code>    if form.is_valid():
          uploaded_file = request.FILES['file']
          new_file = UploadFile(file=uploaded_file)
          new_file.save()
          data = {'text': 'Thank you for your file'}
          print('thank you blablabla')
          print(data)
          return render(request, 'app/thank_you.html', data)
  </code></pre>
  
  <p>The view doesn't update, I do see the prints in the django console but the template does not render...</p>
  
  <p>I would like the <code>return render(request, 'app/thank_you.html', data)</code> to actually refresh the page after the form is submitted but I can't achieve to do so :( Any help ?</p>
  
  <p>Firebug show me this in the console :
  <a href="https://i.stack.imgur.com/epBNM.png" rel="nofollow noreferrer">console output</a></p>