From 4cafd39ead99e2267b17e85be7302fa4202f4e7b Mon Sep 17 00:00:00 2001 From: z0ccc Date: Thu, 26 Aug 2021 15:58:40 -0400 Subject: [PATCH] Changes api to json --- backend/backend/settings.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/backend/settings.py b/backend/backend/settings.py index f1d3aad..b573c4a 100644 --- a/backend/backend/settings.py +++ b/backend/backend/settings.py @@ -102,12 +102,12 @@ AUTH_PASSWORD_VALIDATORS = [ }, ] -# REST_FRAMEWORK = { -# 'DEFAULT_AUTHENTICATION_CLASSES': [ -# 'rest_framework.authentication.BasicAuthentication', -# 'rest_framework.authentication.SessionAuthentication', -# ] -# } +REST_FRAMEWORK = { + # Only enable JSON renderer by default. + 'DEFAULT_RENDERER_CLASSES': [ + 'rest_framework.renderers.JSONRenderer', + ], +} # Internationalization # https://docs.djangoproject.com/en/3.2/topics/i18n/