On Thu, Jun 14, 2012 at 2:32 PM, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Thursday, 14 June 2012 09:51:00 UTC+1, Satvir Kaur 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. > > > Normally in an HTML file you put the image path in the src attribute, not > the binary data (you can use a data URI with base64 encoding, but you almost > certainly don't want to do that). Yes Sir, when i put whole path of image in src attribute its not working.
-- Satvir Kaur satveerkaur.blogspot.in -- 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.