54👍
✅
The documentation seems to imply that if you pass a content_type
parameter to client.post
, it will treat the data
value as a document and POST it directly. So try this:
response = c.post('/ajax/call/', content_type='application/json', data=J_string)
Source:stackexchange.com