Re: how to display image on a template

2013-07-17 Thread Charly Román
> > What should my template have to get the image ?? > First add an url to this view, next: -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsub

how to display image on a template

2013-07-12 Thread sah
hi , here is my view for getting image : I am using a stringIO buffer for temporary storage of the image file and then rendering it to the html . def my_image(request): from matplotlib import pyplot as plt buffer = cStringIO.StringIO() width = 0.5 males = int(Mice.object