Skip to content

Commit 235b98e

Browse files
committed
Merge pull request #2460 from mmarvick/master
Small fixes to the tutorial
2 parents 0e4d202 + 5bf803b commit 235b98e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/tutorial/2-requests-and-responses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Notice that we're no longer explicitly tying our requests or responses to a give
9696

9797
## Adding optional format suffixes to our URLs
9898

99-
To take advantage of the fact that our responses are no longer hardwired to a single content type let's add support for format suffixes to our API endpoints. Using format suffixes gives us URLs that explicitly refer to a given format, and means our API will be able to handle URLs such as [http://example.com/api/items/4.json][json-url].
99+
To take advantage of the fact that our responses are no longer hardwired to a single content type let's add support for format suffixes to our API endpoints. Using format suffixes gives us URLs that explicitly refer to a given format, and means our API will be able to handle URLs such as [http://example.com/api/items/4/.json][json-url].
100100

101101
Start by adding a `format` keyword argument to both of the views, like so.
102102

docs/tutorial/5-relationships-and-hyperlinked-apis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ After adding all those names into our URLconf, our final `snippets/urls.py` file
138138

139139
The list views for users and code snippets could end up returning quite a lot of instances, so really we'd like to make sure we paginate the results, and allow the API client to step through each of the individual pages.
140140

141-
We can change the default list style to use pagination, by modifying our `settings.py` file slightly. Add the following setting:
141+
We can change the default list style to use pagination, by modifying our `tutorial/settings.py` file slightly. Add the following setting:
142142

143143
REST_FRAMEWORK = {
144144
'PAGINATE_BY': 10

0 commit comments

Comments
 (0)