From 91430d30a0b905d01a658548fc672c8cf1be9c0d Mon Sep 17 00:00:00 2001 From: Pratyush Desai Date: Sat, 8 Jan 2022 06:58:16 +0530 Subject: [PATCH] pagination --- website/website/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/website/settings.py b/website/website/settings.py index 5dedc2e..764be04 100644 --- a/website/website/settings.py +++ b/website/website/settings.py @@ -125,3 +125,8 @@ STATIC_URL = 'static/' # https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' + +REST_FRAMEWORK = { + 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', + 'PAGE_SIZE': 10 +} \ No newline at end of file