Change this to:

return HttpResponse(json.dumps({'status': 'success'}), content_type='application/json')