title: How can I use SessionAuthentication to make a login rest API with Django Rest Framework?
body: <p>I want to do a rest api to be able to login to my Django app (from an Android app) using a request like</p>
  
  <pre><code>curl -X POST -d "username=myusername&amp;password=mypassword" http://localhost:12345/rest/api-auth/login/
  </code></pre>
  
  <p>which should return a session id that I can use in future requests. It seems that I should use the SessionAuthentication authentication scheme, but there is <a href="http://www.django-rest-framework.org/api-guide/authentication#sessionauthentication" rel="noreferrer">no doc</a> about it.</p>
  
  <p>I'm aware of <a href="https://stackoverflow.com/q/21317899/326849">this question</a>, but I'd like not to use any other app.</p>
  
  <p>Any suggestion/pointer?</p>