title: DJANGO - redirect() not redirecting - appends the current path name to the domain
body: <p>Basically when a <em><strong>POST</strong></em> request is made, I want to redirect to another page.</p>
  <pre><code>def sample(request): 
      if request.method != &quot;POST&quot;:       
          return render(request,&quot;user/sample.html&quot;)
      else:
          return redirect(&quot;https://www.djangoproject.com&quot;)
  
  </code></pre>
  <p>This code works fine when it receives a <em><strong>GET</strong></em> request but when I submit
  information, instead of redirecting to the page above, it appends the the template name into the url, Something like this :</p>
  <pre><code>http://localhost:8000/sample/sample
  </code></pre>
  <p>No matter what I type into the <code>redirect()</code>, even completely random things it still redirects to <code>sample/sample</code></p>
  <p>I've created multiple django-projects and in every one of them I still get this problem.</p>