diff options
| author | Tom Christie | 2012-10-28 19:37:27 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-10-28 19:37:27 +0000 |
| commit | db635fa6327d8d3ac3b06886c5f459b5c5a5cd04 (patch) | |
| tree | 4aa670b8e7dc6b6e49662c41cc18bce3a0fc0b21 /docs/tutorial/1-serialization.md | |
| parent | fde79376f323708d9f7b80ee830fe63060fb335f (diff) | |
| download | django-rest-framework-db635fa6327d8d3ac3b06886c5f459b5c5a5cd04.tar.bz2 | |
Minor fixes
Diffstat (limited to 'docs/tutorial/1-serialization.md')
| -rw-r--r-- | docs/tutorial/1-serialization.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md index fc052202..c1ab49d1 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -278,13 +278,13 @@ We'll also need a view which corresponds to an individual snippet, and can be us snippet.delete() return HttpResponse(status=204) -Finally we need to wire these views up. Create the `snippet/urls.py` file: +Finally we need to wire these views up. Create the `snippets/urls.py` file: from django.conf.urls import patterns, url urlpatterns = patterns('snippets.views', - url(r'^snippet/$', 'snippet_list'), - url(r'^snippet/(?P<pk>[0-9]+)/$', 'snippet_detail') + url(r'^snippets/$', 'snippet_list'), + url(r'^snippets/(?P<pk>[0-9]+)/$', 'snippet_detail') ) It's worth noting that there's a couple of edge cases we're not dealing with properly at the moment. If we send malformed `json`, or if a request is made with a method that the view doesn't handle, then we'll end up with a 500 "server error" response. Still, this'll do for now. |
