Add default pagination class

This commit is contained in:
jhyns 2023-05-03 14:23:20 +09:00
parent 9bfc73d726
commit 5a7ee11e01

View File

@ -124,3 +124,14 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
# Custom User Model
AUTH_USER_MODEL = "user.User"
# Rest framework settings
REST_FRAMEWORK = {
"DEFAULT_AUTHENTICATION_CLASSES": [
"rest_framework.authentication.SessionAuthentication",
],
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.PageNumberPagination",
"PAGE_SIZE": 20,
}