def jsonify_request(response):
 content = {'status': response.status_code, 'content': smart_str(response.content, response.charset)}
 return HttpResponse(json.dumps(content), content_type='application/json')

def jsonify_request ( response ) : content = { 'status' : response . status_code , 'content' : smart_str ( response . content , response . charset ) } return HttpResponse ( json . dumps ( content ) , content_type = 'application/json' )
turn any response in a 200 response to let jquery code handle it nicely .