  from django.conf import settings
  from django.core.urlresolvers import reverse
  
  from djangorestframework.resource import Resource
  from djangorestframework.response import Response
  from djangorestframework import status
  
  import pickle
  import os
 
</s> remove from djangorestframework.resource import Resource
 </s> add from djangorestframework.resources import FormResource </s> remove from djangorestframework.resource import Resource
 </s> add from djangorestframework.views import BaseView
from djangorestframework.resources import FormResource </s> remove from blogpost.views import BlogPosts, BlogPostInstance, Comments, CommentInstance
 </s> add from django.core.urlresolvers import reverse

from djangorestframework.views import ListOrCreateModelView, InstanceModelView
from djangorestframework.resources import ModelResource

from blogpost.models import BlogPost, Comment

class BlogPostResource(ModelResource):
    model = BlogPost
    fields = ('created', 'title', 'slug', 'content', 'url', 'comments')
    ordering = ('-created',)

    def comments(self, instance):
        return reverse('comments', kwargs={'blogpost': instance.key}) 

class CommentResource(ModelResource):
    model = Comment
    fields = ('username', 'comment', 'created', 'rating', 'url', 'blogpost')
    ordering = ('-created',)

from djangorestframework.views import BaseView
  from django.conf import settings
  from django.core.urlresolvers import reverse
  
from djangorestframework.views import BaseView
  from djangorestframework.response import Response
  from djangorestframework import status
  
  import pickle
  import os
keep keep keep replace keep keep keep keep keep
 Fixing some of the last blocking issues 
examples/objectstore/views.py