#NEWLINE# def JSONServerError( ex , val , tblist ) : #NEWLINE# #INDENT# json = simplejson . dumps ( ( str ( ex ) , str ( tblist ) , tblist ) ) #NEWLINE# return HttpResponseServerError ( json , mimetype = b'application/json' )