  from django.conf.urls.defaults import patterns, url
  from blogpost.views import BlogPosts, BlogPostInstance, Comments, CommentInstance
  
  urlpatterns = patterns('',
      url(r'^$', BlogPosts.as_view(), name='blog-posts'),
      url(r'^(?P<key>[^/]+)/$', BlogPostInstance.as_view(), name='blog-post'),
      url(r'^(?P<blogpost>[^/]+)/comments/$', Comments.as_view(), name='comments'),
 
</s> remove     url(r'^$', BlogPosts.as_view(), name='blog-posts'),
    url(r'^(?P<key>[^/]+)/$', BlogPostInstance.as_view(), name='blog-post'),
    url(r'^(?P<blogpost>[^/]+)/comments/$', Comments.as_view(), name='comments'),
    url(r'^(?P<blogpost>[^/]+)/comments/(?P<id>[^/]+)/$', CommentInstance.as_view(), name='comment'),
)
 </s> add     url(r'^$', ListOrCreateModelView.as_view(resource=BlogPostResource), name='blog-posts-root'),
    url(r'^(?P<key>[^/]+)/$', InstanceModelView.as_view(resource=BlogPostResource)),
    url(r'^(?P<blogpost>[^/]+)/comments/$', ListOrCreateModelView.as_view(resource=CommentResource), name='comments'),
    url(r'^(?P<blogpost>[^/]+)/comments/(?P<id>[^/]+)/$', InstanceModelView.as_view(resource=CommentResource)),
) </s> remove     url(r'^$',          MyModelRootResource.as_view(), name='my-model-root-resource'),
    url(r'^([0-9]+)/$', MyModelResource.as_view(), name='my-model-resource'),
 </s> add     url(r'^$',          ListOrCreateModelView.as_view(resource=MyModelResource), name='model-resource-root'),
    url(r'^([0-9]+)/$', InstanceModelView.as_view(resource=MyModelResource)), </s> remove from modelresourceexample.views import MyModelRootResource, MyModelResource
 </s> add from djangorestframework.views import ListOrCreateModelView, InstanceModelView
from djangorestframework.resources import ModelResource
from modelresourceexample.models import MyModel

class MyModelResource(ModelResource):
    model = MyModel
    fields = ('foo', 'bar', 'baz', 'url')
    ordering = ('created',) </s> remove from djangorestframework.resource import Resource
 </s> add from djangorestframework.resources import FormResource
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 django.conf.urls.defaults import patterns, url
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',)

  
  urlpatterns = patterns('',
      url(r'^$', BlogPosts.as_view(), name='blog-posts'),
      url(r'^(?P<key>[^/]+)/$', BlogPostInstance.as_view(), name='blog-post'),
      url(r'^(?P<blogpost>[^/]+)/comments/$', Comments.as_view(), name='comments'),
keep replace keep keep keep keep keep
 Fixing some of the last blocking issues 
examples/blogpost/urls.py