Помогите понять в где проблема.
Есть джанга с таким кодом:
from django.http import HttpResponse, JsonResponse
from django.views.generic import View
from django.views.decorators.csrf import csrf_exempt
import json
from workers import test
@csrf_exempt
def main(request):
if request.method == 'POST':
request_json = json.loads(request.body.decode())
if request_json['site'] == 'test':
test_inf = test.get_user_info(request_json['id'])
return JsonResponse({'test': {'ID': request_json['id'], 'info': test_inf}})
в test.py
def get_user_info(location):
my_dict = {'responce': 'кирилица'}
return my_dict
В консоль получаю вот такое
curl -XPOST -d '{"site":"test","id":"1111"}' http://localhost:8000
{"test": {"info": {"responce": "\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430"}, "ID": "1111"}}
Отправлял файерфоксом запрос, он кирилицу нормально показывает. Не понимаю, это джангу нужно настраивать или мою консоль.
Питон последний, джанго тоже.