  from django.template import TemplateDoesNotExist, Template
  import django.template.loader
  from rest_framework.decorators import api_view, renderer_classes
  from rest_framework.renderers import TemplateHTMLRenderer
  from rest_framework.response import Response
  
  
 
</s> remove from django.conf.urls.defaults import patterns, url
 </s> add  </s> remove from django.test.client import RequestFactory
 </s> add  </s> remove 
 </s> add from rest_framework.compat import patterns, url, include </s> remove from rest_framework.compat import yaml
 </s> add from rest_framework.compat import yaml, patterns, url, include
from rest_framework.compat import patterns, url
  from django.template import TemplateDoesNotExist, Template
  import django.template.loader
from rest_framework.compat import patterns, url
  from rest_framework.decorators import api_view, renderer_classes
  from rest_framework.renderers import TemplateHTMLRenderer
  from rest_framework.response import Response
  
  
keep add 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/htmlrenderer.py