  from django.test import TestCase
  from django.test.client import RequestFactory
  from rest_framework.reverse import reverse
  
  factory = RequestFactory()
  
  
  def null_view(request):
 
</s> remove from django.conf.urls.defaults import patterns, url
 </s> add  </s> remove from django.conf.urls.defaults import patterns, url, include
 </s> add  </s> remove from django.test.client import RequestFactory
 </s> add 
from rest_framework.compat import patterns, url
  from django.test import TestCase
  from django.test.client import RequestFactory
from rest_framework.compat import patterns, url
  from rest_framework.reverse import reverse
  
  factory = RequestFactory()
  
  
  def null_view(request):
keep add keep 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/reverse.py