              token, created = Token.objects.get_or_create(user=serializer.object['user'])
              return Response({'token': token.key})
          return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
  
 
</s> remove class AuthTokenView(APIView):
 </s> add class ObtainAuthToken(APIView): </s> remove     (r'^auth-token/', include('rest_framework.authtoken.urls')),
 </s> add     (r'^auth-token/', 'rest_framework.authtoken.views.obtain_auth_token'),
obtain_auth_token = ObtainAuthToken.as_view()
              token, created = Token.objects.get_or_create(user=serializer.object['user'])
              return Response({'token': token.key})
          return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
  
obtain_auth_token = ObtainAuthToken.as_view()
keep keep keep add
 Renamed AuthTokenView to ObtainAuthToken, added obtain_auth_token var, updated tests & docs. Left authtoken.urls in place as example. 
rest_framework/authtoken/views.py