该文档似乎暗示着,如果您将
content_type参数传递给
client.post,它将把该
data值视为一个文档并直接过帐。所以试试这个:
response = c.post('/ajax/call/', content_type='application/json', data=J_string)
该文档似乎暗示着,如果您将
content_type参数传递给
client.post,它将把该
data值视为一个文档并直接过帐。所以试试这个:
response = c.post('/ajax/call/', content_type='application/json', data=J_string)