get data from post request django json code example
Example: django ajax body to json
# In Django you need to deserialize the json
import json
def my_view(request):
body_unicode = request.body.decode('utf-8')
body = json.loads(body_unicode)
content = body['content']