mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
Link quickstart to valid API guide page
This commit is contained in:
parent
fbf5841189
commit
bb0e29963c
|
@ -137,12 +137,12 @@ Finally, we're including default login and logout views for use with the browsab
|
||||||
|
|
||||||
## Pagination
|
## Pagination
|
||||||
Pagination allows you to control how many objects per page are returned. To enable it add the following lines to `tutorial/settings.py`
|
Pagination allows you to control how many objects per page are returned. To enable it add the following lines to `tutorial/settings.py`
|
||||||
|
|
||||||
REST_FRAMEWORK = {
|
REST_FRAMEWORK = {
|
||||||
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
|
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
|
||||||
'PAGE_SIZE': 10
|
'PAGE_SIZE': 10
|
||||||
}
|
}
|
||||||
|
|
||||||
## Settings
|
## Settings
|
||||||
|
|
||||||
Add `'rest_framework'` to `INSTALLED_APPS`. The settings module will be in `tutorial/settings.py`
|
Add `'rest_framework'` to `INSTALLED_APPS`. The settings module will be in `tutorial/settings.py`
|
||||||
|
@ -224,5 +224,5 @@ If you want to get a more in depth understanding of how REST framework fits toge
|
||||||
|
|
||||||
[image]: ../img/quickstart.png
|
[image]: ../img/quickstart.png
|
||||||
[tutorial]: 1-serialization.md
|
[tutorial]: 1-serialization.md
|
||||||
[guide]: ../#api-guide
|
[guide]: ../api-guide/requests.md
|
||||||
[httpie]: https://github.com/jakubroztocil/httpie#installation
|
[httpie]: https://github.com/jakubroztocil/httpie#installation
|
||||||
|
|
Loading…
Reference in New Issue
Block a user