fetch 100 players at a time w/pagination

This commit is contained in:
nprasad2077 committed 2023-04-20 21:24:19 -05:00
1 parent f39d19ea19
commit 7b38cb386e
2 files changed
+7 -4

No files matched your search

+6
View File
@@ -136,3 +136,9 @@ STATIC_URL = 'static/'
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
REST_FRAMEWORK = {
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 100, # Adjust this value according to the number of records you want to display per page
}