From 9b43cfddecbcfbdf5bc2477fb98b121b86399522 Mon Sep 17 00:00:00 2001 From: nineven Date: Fri, 27 Mar 2020 13:27:39 +0800 Subject: [PATCH] disable django default temp --- fir_ser/fir_ser/settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fir_ser/fir_ser/settings.py b/fir_ser/fir_ser/settings.py index 05ce88a..a4ac6bb 100644 --- a/fir_ser/fir_ser/settings.py +++ b/fir_ser/fir_ser/settings.py @@ -103,7 +103,11 @@ AUTH_PASSWORD_VALIDATORS = [ }, ] - +REST_FRAMEWORK = { + 'DEFAULT_RENDERER_CLASSES': ( + 'rest_framework.renderers.JSONRenderer', + ) +} # Internationalization # https://docs.djangoproject.com/en/3.0/topics/i18n/