title: How to use django authentication(django.contrib.auth) with my Android app
body: <p>I am using Django as my backend for my android app. I have been handling post request using @csrf-exempt annotation with my views as I wasn't able to deal with csrf verification while sending post request from android(VOLLEY LIBRARY).
  Now, I have to use django.contrib.auth login and logout methods but sessions aren't working when I am sending post request from android.</p>
  
  <p>I had tried enabling cookies with my request in android but that also didn't work(enabling cookies also did not solve the csrf verification failed issue).Also I tried taking csrf token from a GET request to django( django.middleware.csrf - get_token) and then passing that csrf token in headers(X-CSRF-TOKEN)in my post requests, that also didn't work.</p>
  
  <p>Code that I used to enable cookies in android:</p>
  
  <pre><code>CookieManager manager = new CookieManager();   
  CookieHandler.setDefault(manager);
  </code></pre>
  
  <p>So,<br>
  1. I don't know how to use django scripts without using @csrf-exempt from android.<br>
  2. and how to use django login with android  </p>