2009/10/12 Malcolm MacKinnon <mmack3...@gmail.com> > Hi, > I'm getting error messages with sorl thumbnail. I'm simply trying to show > thumbnail images on my template. I select a number of images in my views, > and iterate over my selection. Note that all my images are a certain size, > and I'm just trying to reduce that size in my template using sorl thumbnail. > All works fine, until I use the following template thumbnail tag: > > <img src="{% thumbnail '{{obj}}' 80x80 %}}" /> > > where {{ob}} is the source directory of my image. I get the following > error: > > ThumbnailException: Source file: '/home/malcolm/data1/orders1/media/{{obj}}' > does not exist. > > > Removing quotes like this > <img src="{% thumbnail {{obj}} 80x80 %}}" /> > > gives me this : > Could not parse the remainder: '{{obj}}' from '{{obj}}' > > > heh... "{% thumbnail obj 80x80 %}"
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---