  from flywheel.response import Response, status
  from flywheel.resource import Resource
  from flywheel.modelresource import ModelResource, RootModelResource
  from blogpost.models import BlogPost, Comment
  
  BLOG_POST_FIELDS = ('created', 'title', 'slug', 'content', 'absolute_url', 'comment_url', 'comments_url')
  COMMENT_FIELDS = ('username', 'comment', 'created', 'rating', 'absolute_url', 'blogpost_url')
  
 
</s> remove from flywheel.resource import Resource
from flywheel.response import Response, status
 </s> add from djangorestframework.resource import Resource
from djangorestframework.response import Response, status </s> remove from flywheel.resource import Resource
from flywheel.response import Response, status
from flywheel.emitters import BaseEmitter
 </s> add from djangorestframework.resource import Resource
from djangorestframework.response import Response, status
from djangorestframework.emitters import BaseEmitter </s> remove     class MyModelRootResource(ModelRootResource):
	"""A create/list resource for MyModel."""
        allowed_methods = ('GET', 'POST')
        model = MyModel
 </s> add ``views.py`` </s> remove from django.contrib import admin
 </s> add #from django.contrib import admin
from djangorestframework.resource import Resource

#admin.autodiscover()

class RootResource(Resource):
    allowed_methods = anon_allowed_methods = ('GET',)

    def get(self, request, auth):
        return {'simple example': self.reverse('simpleexample.views.MyModelRootResource'),
                'pygments example': self.reverse('pygments_api.views.PygmentsRoot'),
                'object store example': self.reverse('objectstore.views.ObjectStoreRoot'),
                'blog post example': self.reverse('blogpost.views.BlogPostRoot'),} </s> remove     from djangorestframework.modelresource import ModelResource, ModelRootResource
    from models import MyModel
 </s> add .. include:: ../examples/simpleexample/urls.py
    :literal:
from djangorestframework.response import Response, status
from djangorestframework.resource import Resource
from djangorestframework.modelresource import ModelResource, RootModelResource
from djangorestframework.response import Response, status
from djangorestframework.resource import Resource
from djangorestframework.modelresource import ModelResource, RootModelResource
from djangorestframework.response import Response, status
from djangorestframework.resource import Resource
from djangorestframework.modelresource import ModelResource, RootModelResource
from djangorestframework.response import Response, status
from djangorestframework.resource import Resource
from djangorestframework.modelresource import ModelResource, RootModelResource
  from blogpost.models import BlogPost, Comment
  
  BLOG_POST_FIELDS = ('created', 'title', 'slug', 'content', 'absolute_url', 'comment_url', 'comments_url')
  COMMENT_FIELDS = ('username', 'comment', 'created', 'rating', 'absolute_url', 'blogpost_url')
  
replace replace replace keep keep keep keep keep
 Rename to django-rest-framework, get simpleexample working 
examples/blogpost/views.py