title: Django redirect, succesfull HTTP GET, no redirect
body: <p>I'm trying to use a django redirect but I'm without much luck.
  My structure is as follows:</p>
  <p>views:</p>
  <pre><code>def pageOne(request):
      return render(request, 'pageOne.html')
  
  def pageTwo(request):
      return render(request, 'pageTwo.html')
  
  def addInstance(request):
      instance = Model(name=request.POST['name'])
      return redirect(pageTwoUrlName) 
  </code></pre>
  <p>Then on pageOne I have a button (in a React app, hosted on a node server, called in pageone.html) to add the model instance which calls addInstance through a JQuery ajax call.
  All three function seems to work, I can visit the url's of both pages.<br />
  When I add the instance on page one, I see the following happening in the Django console:</p>
  <pre><code>[] &quot;POST /addInstance/ HTTP/1.1&quot; 302 0
  [] &quot;GET /pageTwo/ HTTP/1.1&quot; 200 3741
  </code></pre>
  <p>However, and this is the part I do not get, the browser screen does not redirect to pageTwo.
  Anyways, any tips will be greatly appreciated!</p>
  <hr />
  <p>Project directory tree:</p>
  <ul>
  <li>[Application Folder]
  <ul>
  <li>[app]
  <ul>
  <li>views (with the three functions)</li>
  <li>urls (with the three urls)</li>
  <li>models (with the Model class)</li>
  </ul>
  </li>
  <li>[core]
  <ul>
  <li>urls (extension to app/urls)</li>
  <li>[public]
  <ul>
  <li>pageOne.html</li>
  <li>pageTwo.html</li>
  </ul>
  </li>
  </ul>
  </li>
  </ul>
  </li>
  <li>[dist]
  <ul>
  <li>ReactItem.js</li>
  </ul>
  </li>
  </ul>