title: Django -- Conditional Login Redirect
body: <p>I am working on a Django application that will have two types of users: Admins and Users. Both are groups in my project, and depending on which group the individual logging in belongs to I'd like to redirect them to separate pages. Right now I have this in my settings.py</p>
  
  <pre><code>LOGIN_REDIRECT_URL = 'admin_list'
  </code></pre>
  
  <p>This redirects all users who sign in to 'admin_list', but the view is only accessible to members of the Admins group -- otherwise it returns a 403. As for the login view itself, I'm just using the one Django provides. I've added this to my main urls.py file to use these views:</p>
  
  <pre><code>url(r'^accounts/', include('django.contrib.auth.urls')),
  </code></pre>
  
  <p>How can I make this so that only members of the Admins group are redirect to this view, and everyone else is redirected to a different view?</p>