title: token authentication on Django REST framework + Angular project
body: <p>I'm using DRF and Angular, which client environment is a mobile devices. </p>
  
  <p>I've found out a   <a href="http://diy.stackexchange.com" title="this text appears when you mouse over">django-rest-auth</a> package. </p>
  
  <p>I haven't hesitate to choice for that, because that provides a TokenAuthentication feature, which is suitable with a mobile client.</p>
  
  <p>When I sent a login request, client receives a token.</p>
  
  <p><img src="https://i.stack.imgur.com/kW7vb.png" alt="enter image description here">
  Then, I was add a the bellow in request success callback.</p>
  
  <pre><code> login: function(username, password) {
          return $http.post('http://192.168.0.3:8000/rest-auth/login/', {
              'username':username,
              'password':password,
          }).success(function(data) {
              $http.defaults.headers.common.Authorization = 'Token ' + data.key;
              Account.authenticated = true;
              console.log("login success", data)
          })
  </code></pre>
  
  <p>At server's console, output about incoming request is the bellow</p>
  
  <p><code>'HTTP_AUTHORIZATION': 'Token 3fae470d169adb550e538c99a754fcfbe3485f75'</code></p>
  
  <p>But, I saw an unexpected result, like this:</p>
  
  <pre><code>request.user AnonymousUser
  request.auth None
  </code></pre>
  
  <p>According to <a href="https://stackoverflow.com/questions/17560228/how-to-use-tokenauthentication-for-api-in-django-rest-framework/17569377#17569377">here</a>, If I send a request with token, which extra authentication works will be processed by itself.</p>
  
  <p>Should I add an other code for complete authentication? </p>
  
  <p>(ex. register a token into django's session storage.)</p>
  
  <p>I would like to hear your advice.</p>