aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial/1-serialization.md
diff options
context:
space:
mode:
authorRichard Wackerbarth2013-01-04 05:46:30 -0600
committerRichard Wackerbarth2013-01-10 15:37:15 -0600
commit674c9029c1b0f3680bfc04dd87b58f9bd21988de (patch)
treef2b21e0a547937bddfe79778d510ab57c47ffe1d /docs/tutorial/1-serialization.md
parentc4e33d8a75be59fdbc0f5f1b8ff04fdf5a43d35b (diff)
downloaddjango-rest-framework-674c9029c1b0f3680bfc04dd87b58f9bd21988de.tar.bz2
Imply an additional element in infinite lists
This is to allow the addition of elements without having to change existing lines of code
Diffstat (limited to 'docs/tutorial/1-serialization.md')
-rw-r--r--docs/tutorial/1-serialization.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md
index e61fb946..c8db8f24 100644
--- a/docs/tutorial/1-serialization.md
+++ b/docs/tutorial/1-serialization.md
@@ -60,7 +60,7 @@ We'll also need to add our new `snippets` app and the `rest_framework` app to `I
INSTALLED_APPS = (
...
'rest_framework',
- 'snippets'
+ 'snippets',
)
We also need to wire up the root urlconf, in the `tutorial/urls.py` file, to include our snippet app's URLs.
@@ -288,7 +288,7 @@ Finally we need to wire these views up. Create the `snippets/urls.py` file:
urlpatterns = patterns('snippets.views',
url(r'^snippets/$', 'snippet_list'),
- url(r'^snippets/(?P<pk>[0-9]+)/$', 'snippet_detail')
+ url(r'^snippets/(?P<pk>[0-9]+)/$', 'snippet_detail'),
)
It's worth noting that there are 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.