From d697680eb3d4537b1858e71aa34fde7b891464e4 Mon Sep 17 00:00:00 2001 From: kjh03160 Date: Tue, 22 Dec 2020 15:35:56 +0900 Subject: [PATCH] Fix: add AutoSchema config on settings.py --- tutorial/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutorial/settings.py b/tutorial/settings.py index e2b5663f..4f4b856d 100644 --- a/tutorial/settings.py +++ b/tutorial/settings.py @@ -130,6 +130,8 @@ 'PAGE_SIZE': 10, 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', + 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema' + } if ENVIRONMENT == 'production':