title: Django Login with Ajax?
body: <p>I'm working on a jquery function to post a login-form with ajax. In the ajax success: I want to handle the response differently if it's a successful login or not.</p>
  
  <p>So in Django I wonder if i can build on the existing login-view to add some success/error variable to send back to the jquery function together with the returned page. I mean keep the view as it works by default but also add an extra "status" variable.</p>
  
  <p>A small example of this would be great!</p>