title: How to access graph which is present in views.py file into html templates in django
body: <p>I have a views.py file as follows</p>
  
  <pre><code>def showimage(request):
      # Construct the graph
      t = arange(0.0, 2.0, 0.01)
      s = sin(2*pi*t)
      plot(t, s, linewidth=1.0)
  
      xlabel('time (s)')
      ylabel('voltage (mV)')
      title('About as simple as it gets, folks')
      grid(True)
  
  
      buffer = StringIO.StringIO()
      canvas = pylab.get_current_fig_manager().canvas
      canvas.draw()
      pilImage = PIL.Image.frombytes("RGB", canvas.get_width_height(), canvas.tostring_rgb())
      pilImage.save(buffer, "PNG")
      pylab.close()
  </code></pre>
  
  <p>Could you please help me to pass that graph into the html page?</p>