On Thu, 2012-06-14 at 14:21 +0530, Satvir Toor wrote: > > This is a strange thing to want to do. What are you doing with `img` > in the > > template? > I am using image_data variable as a image source in the template(html > file). > > <img src="{{img}}" width="100" height="100" alt="image is not > available" align="right"/> > What should i ??? Image is not displaying. > >
from the questions you have been asking on the list it seems to me that you are unfamiliar with web programming. I suggest that you take some time out to learn the basics of web programming and also to understand how django works. I suggest you do the tutorial in the official documentation. Also you should learn at least the basics of javascript. The problem you have been bringing up in the last week is not best solved by generating an image on the server side and passing it to the template. The problem is solved by generating the data server side, passing this data to the template and using a js library to generate and render the image on the page. -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.