aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorTom Christie2011-06-09 02:07:46 +0100
committerTom Christie2011-06-09 02:07:46 +0100
commit0da291fad33c645a333842159a1df9109d3610a5 (patch)
tree630037d48bdbc295f29dc44a3290df4456677be7 /docs
parentdac7eb0916eef061a119b5f2a293fe8b8ae9d5bf (diff)
downloaddjango-rest-framework-0da291fad33c645a333842159a1df9109d3610a5.tar.bz2
Fix up the example
Diffstat (limited to 'docs')
-rw-r--r--docs/index.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/index.rst b/docs/index.rst
index dfa361bd..481bdfe2 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -83,8 +83,8 @@ Using Django REST framework can be as simple as adding a few lines to your urlco
model = MyModel
urlpatterns = patterns('',
- url(r'^$', RootModelResource.as_view(resource=MyResource)),
- url(r'^(?P<pk>[^/]+)/$', ModelResource.as_view(resource=MyResource)),
+ url(r'^$', ListOrCreateModelView.as_view(resource=MyResource)),
+ url(r'^(?P<pk>[^/]+)/$', InstanceModelView.as_view(resource=MyResource)),
)
Django REST framework comes with two "getting started" examples.