  
  Add these to your root URLconf if you're using token authentication
  your API requires authentication.
  
  The urls must be namespaced as 'rest_framework', and you should make sure
  your authentication settings include `TokenAuthentication`.
  
      urlpatterns = patterns('',
          ...
          url(r'^auth-token', include('rest_framework.authtoken.urls', namespace='rest_framework'))
      )
 
</s> remove Add these to your root URLconf if you're using token authentication
 </s> add Add this to your root URLconf if you're using token authentication </s> remove Login and logout views for token authentication.
 </s> add Login view for token authentication. </s> remove         url(r'^auth-token', include('rest_framework.authtoken.urls', namespace='rest_framework'))
 </s> add         url(r'^auth-token/', 'rest_framework.authtoken.obtain_auth_token') </s> remove from rest_framework.authtoken.views import AuthTokenView
 </s> add  </s> remove     (r'^auth-token/', include('rest_framework.authtoken.urls')),
 </s> add     (r'^auth-token/', 'rest_framework.authtoken.views.obtain_auth_token'),
You should make sure your authentication settings include
`TokenAuthentication`. 
  
  Add these to your root URLconf if you're using token authentication
  your API requires authentication.
  
You should make sure your authentication settings include
`TokenAuthentication`. 
You should make sure your authentication settings include
`TokenAuthentication`. 
  
      urlpatterns = patterns('',
          ...
          url(r'^auth-token', include('rest_framework.authtoken.urls', namespace='rest_framework'))
      )
keep keep keep keep replace replace keep keep keep keep keep
 Renamed AuthTokenView to ObtainAuthToken, added obtain_auth_token var, updated tests & docs. Left authtoken.urls in place as example. 
rest_framework/authtoken/urls.py