title: django LOGIN_REDIRECT_URL with dynamic value
body: <p>I'm trying to redirect a user to a url containing his username (like <a href="http://domain/username/" rel="noreferrer">http://domain/username/</a>), and trying to figure out how to do this. I'm using django.contrib.auth for my user management, so I've tried using LOGIN_REDIRECT_URL in the settings:</p>
  
  <pre><code>LOGIN_REDIRECT_URL = '/%s/' % request.user.username # &lt;--- fail..
  </code></pre>
  
  <p>but it only seems to accept fixed strings, rather than something that'll be determined after the user is logged in. How can I still accomplish this?</p>