  from django.core.exceptions import PermissionDenied
  from django.conf.urls.defaults import patterns, url
  from django.http import Http404
  from django.test import TestCase
  from django.template import TemplateDoesNotExist, Template
  import django.template.loader
  from rest_framework.decorators import api_view, renderer_classes
 
</s> remove from django.conf.urls.defaults import patterns
 </s> add  </s> remove from django.conf.urls.defaults import patterns, url
 </s> add  </s> remove from django.http import HttpResponse
 </s> add 
  from django.core.exceptions import PermissionDenied

  from django.http import Http404
  from django.test import TestCase
  from django.template import TemplateDoesNotExist, Template
  import django.template.loader
  from rest_framework.decorators import api_view, renderer_classes
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/htmlrenderer.py