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 = {
|
REST_FRAMEWORK = {
|
||||||
# 'DEFAULT_AUTHENTICATION_CLASSES': [
|
# Only enable JSON renderer by default.
|
||||||
# 'rest_framework.authentication.BasicAuthentication',
|
'DEFAULT_RENDERER_CLASSES': [
|
||||||
# 'rest_framework.authentication.SessionAuthentication',
|
'rest_framework.renderers.JSONRenderer',
|
||||||
# ]
|
],
|
||||||
# }
|
}
|
||||||
|
|
||||||
# Internationalization
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/3.2/topics/i18n/
|
# https://docs.djangoproject.com/en/3.2/topics/i18n/
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue