title: How to redirect from the Django login page to a single page application?
body: <p>I am building a SPA React application that is served by a single Django view at /. I am using Django's admin page for login.</p>
  
  <p>If an unlogged in user navigates to /#/accounts/ the Django admin page will correctly them redirect to <a href="http://localhost:8000/admin/login/?next=/#/accounts/pp01/" rel="nofollow noreferrer">http://localhost:8000/admin/login/?next=/#/accounts/pp01/</a>  for login. Once they log in, they get redirected to my Django view that is configured at the / url path.</p>
  
  <p>The #/account/pp01 part of the redirect gets lost and the user gets redirected to the wrong part of my single page application (<a href="http://localhost:8000/#/" rel="nofollow noreferrer">http://localhost:8000/#/</a>). Does anyone know how to get this to work?</p>
  
  <p>I don't understand why Django is cutting off the # part of the URL. Any insight would be appreciated. Thanks!</p>