title: Can't do a simple redirect after POST request in Django (using HttpResponseRedirect)
body: <p>I am trying to return an HTTP Response after a POST request in Django, it does not seem to be working. I have illustrated that below using HttpResponseRedirect. </p>
  
  <p>When executing below code, I see the 'hello' message but it does not redirect. if I move the 'return HttpResponseRedirect('/account/')' line to the bottom then it does redirect upon loading the page, so the line does work otherwise.</p>
  
  <pre><code>if request.POST:
      print('hello')
      return HttpResponseRedirect('/thank-you/')
  else:
      return render(request, 'account.html')
  </code></pre>