  
  from django.utils import simplejson as json
  from django.http import HttpResponse
  
  from rest_framework.views import APIView
  from rest_framework import permissions
  
  from rest_framework.authtoken.models import Token
  from rest_framework.authentication import TokenAuthentication
  
 
</s> remove from django.http import HttpResponse
 </s> add  </s> remove from django.conf.urls.defaults import patterns
 </s> add 
  
  from django.utils import simplejson as json
  from django.http import HttpResponse
  

  from rest_framework import permissions
  
  from rest_framework.authtoken.models import Token
  from rest_framework.authentication import TokenAuthentication
  
keep keep keep keep replace keep keep keep keep keep
 urls, patterns, include imports move to compat to support incoming 1.3 thru 1.6 import compatability 
rest_framework/tests/authentication.py