  
  Often you'll want parts of your API to directly map to existing Models.
  At it's simplest this looks something like this...
  
  ``views.py``::
  
      from djangorestframework.modelresource import ModelResource, ModelRootResource
      from models import MyModel
  
      class MyModelRootResource(ModelRootResource):
 
</s> remove     from djangorestframework.modelresource import ModelResource, ModelRootResource
    from models import MyModel
 </s> add .. include:: ../examples/simpleexample/urls.py
    :literal: </s> remove     class MyModelRootResource(ModelRootResource):
	"""A create/list resource for MyModel."""
        allowed_methods = ('GET', 'POST')
        model = MyModel
 </s> add ``views.py`` </s> remove     hg clone https://tomchristie@bitbucket.org/tomchristie/flywheel
 </s> add     hg clone https://tomchristie@bitbucket.org/tomchristie/django-rest-framework </s> remove The django-rest-framework project is hosted as a `mercurial repository on bitbucket <https://bitbucket.org/tomchristie/flywheel>`_.
 </s> add The django-rest-framework project is hosted as a `mercurial repository on bitbucket <https://bitbucket.org/tomchristie/django-rest-framework>`_. </s> remove from flywheel.response import Response, status
from flywheel.resource import Resource
from flywheel.modelresource import ModelResource, RootModelResource
 </s> add from djangorestframework.response import Response, status
from djangorestframework.resource import Resource
from djangorestframework.modelresource import ModelResource, RootModelResource
``urls.py``
  
  Often you'll want parts of your API to directly map to existing Models.
  At it's simplest this looks something like this...
  
``urls.py``
  
      from djangorestframework.modelresource import ModelResource, ModelRootResource
      from models import MyModel
  
      class MyModelRootResource(ModelRootResource):
keep keep keep keep replace keep keep keep keep keep
 Rename to django-rest-framework, get simpleexample working 
docs/index.rst