Changes api to json

This commit is contained in:
z0ccc 2021-08-26 15:58:40 -04:00
parent fd34d998c6
commit 4cafd39ead

View file

@ -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/