  """
  Login and logout views for token authentication.
  
  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
 
</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 The urls must be namespaced as 'rest_framework', and you should make sure
your authentication settings include `TokenAuthentication`.
 </s> add You should make sure your authentication settings include
`TokenAuthentication`.  </s> remove     (r'^auth-token/', include('rest_framework.authtoken.urls')),
 </s> add     (r'^auth-token/', 'rest_framework.authtoken.views.obtain_auth_token'), </s> remove class AuthTokenView(APIView):
 </s> add class ObtainAuthToken(APIView): </s> remove     url(r'^login/$', AuthTokenView.as_view(), name='token_login'),
 </s> add     url(r'^login/$', 'rest_framework.authtoken.views.obtain_auth_token', name='token_login'),
Login view for token authentication.
  """
Login view for token authentication.
  
  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
keep 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