#NEWLINE# def stream_graph( output ) : #NEWLINE# #INDENT# response = HttpResponse ( mimetype = 'image/png' ) #NEWLINE# response . write ( output . stream ( 'png' ) . read ( ) ) #NEWLINE# return response