aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial
diff options
context:
space:
mode:
authorTom Christie2013-10-18 01:10:03 -0700
committerTom Christie2013-10-18 01:10:03 -0700
commitbad5083e09e840dec0cc5d8b2d086e3d231c63f9 (patch)
treeda2ac0b3b085d5a7b7d430c2256e612c042caec8 /docs/tutorial
parent7e4f9f0863ec43cebe1a73eba9c876f2655feded (diff)
parente83bc003234418fc6b21b841de216319491bd38d (diff)
downloaddjango-rest-framework-bad5083e09e840dec0cc5d8b2d086e3d231c63f9.tar.bz2
Merge pull request #1176 from rprince/patch-1
Added name of file to edit
Diffstat (limited to 'docs/tutorial')
-rw-r--r--docs/tutorial/2-requests-and-responses.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial/2-requests-and-responses.md b/docs/tutorial/2-requests-and-responses.md
index 6ff97f37..ba9eb723 100644
--- a/docs/tutorial/2-requests-and-responses.md
+++ b/docs/tutorial/2-requests-and-responses.md
@@ -35,7 +35,7 @@ The wrappers also provide behaviour such as returning `405 Method Not Allowed` r
Okay, let's go ahead and start using these new components to write a few views.
-We don't need our `JSONResponse` class anymore, so go ahead and delete that. Once that's done we can start refactoring our views slightly.
+We don't need our `JSONResponse` class in `views.py` anymore, so go ahead and delete that. Once that's done we can start refactoring our views slightly.
from rest_framework import status
from rest_framework.decorators import api_view
@@ -64,7 +64,7 @@ We don't need our `JSONResponse` class anymore, so go ahead and delete that. On
Our instance view is an improvement over the previous example. It's a little more concise, and the code now feels very similar to if we were working with the Forms API. We're also using named status codes, which makes the response meanings more obvious.
-Here is the view for an individual snippet.
+Here is the view for an individual snippet (still in `views.py`).
@api_view(['GET', 'PUT', 'DELETE'])
def snippet_detail(request, pk):