          url(r'^auth-token', include('rest_framework.authtoken.urls', namespace='rest_framework'))
      )
  """
  from django.conf.urls.defaults import patterns, url
  from rest_framework.authtoken.views import AuthTokenView
  
  urlpatterns = patterns('rest_framework.authtoken.views',
      url(r'^login/$', AuthTokenView.as_view(), name='token_login'),
  )
 
</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'), </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 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):
          url(r'^auth-token', include('rest_framework.authtoken.urls', namespace='rest_framework'))
      )
  """
  from django.conf.urls.defaults import patterns, url

  
  urlpatterns = patterns('rest_framework.authtoken.views',
      url(r'^login/$', AuthTokenView.as_view(), name='token_login'),
  )
keep keep keep keep replace 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