Skip to content

Commit ac6cc0b

Browse files
committed
Add rest framework settings.
1 parent c1476a4 commit ac6cc0b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api/settings.py

+5
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,8 @@
120120
# https://docs.djangoproject.com/en/3.1/howto/static-files/
121121

122122
STATIC_URL = '/static/'
123+
124+
REST_FRAMEWORK = {
125+
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
126+
'PAGE_SIZE': 10,
127+
}

0 commit comments

Comments
 (0)