title: Django HttpResponsePermanentRedirect don't process my view
body: <p>If I put this in my view:
  <pre><code>if slug == 'old-path':
          return HttpResponsePermanentRedirect('new-path')</pre></code>
  it skips my slugbased view and returns 404.<br>
  How do I easily return 301 and "reprocess" my view so I don't get a 404?<br>
    <p><strong>EDIT</strong><br>
  @Pydev UAs comment was the correct answer in this case, but I appreciated the detailed answer by John Debs, which gave me the hint to look into named urls, which I didn't know about. Thanks all.</p></p>