  from django.utils import simplejson as json
  from rest_framework import generics, status, serializers
  from rest_framework.tests.models import Anchor, BasicModel, ManyToManyModel, BlogPost, BlogPostComment, Album, Photo, OptionalRelationModel
  
  factory = RequestFactory()
  
  
  class BlogPostCommentSerializer(serializers.ModelSerializer):
 
</s> remove from django.conf.urls.defaults import patterns, url
 </s> add  </s> remove from django.conf.urls.defaults import patterns, url
 </s> add  </s> remove from rest_framework.views import APIView
 </s> add 
from rest_framework.compat import patterns, url
  from django.utils import simplejson as json
  from rest_framework import generics, status, serializers
from rest_framework.compat import patterns, url
  from rest_framework.tests.models import Anchor, BasicModel, ManyToManyModel, BlogPost, BlogPostComment, Album, Photo, OptionalRelationModel
  
  factory = RequestFactory()
  
  
  class BlogPostCommentSerializer(serializers.ModelSerializer):
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/hyperlinkedserializers.py