Changes api to json
This commit is contained in:
parent
fd34d998c6
commit
4cafd39ead
1 changed files with 6 additions and 6 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue