Cause: Chrome update: joy: It is as follows.... 2017/04/11 http://var.blog.jp/archives/70125676.html
Creating a ʻUTF8CharsetJSONRenderer class with ʻUTF-8
The REST Framework
documentation says UTF-8 by default ... lol
renderers.py
from rest_framework.renderers import JSONRenderer
class UTF8CharsetJSONRenderer(JSONRenderer):
charset = 'utf-8'
'DEFAULT_RENDERER_CLASSES': (
#Comment out here!
#'rest_framework.renderers.JSONRenderer',
#Change to the one you made.(I'm in a directory called diary, so please change it to your own path.)
'diary.renderers.UTF8CharsetJSONRenderer',
)
Recommended Posts