You should see some 404 error messages in your web server log. I am guessing
that you're not serving the static media correctly.

-Chris

On Mon, Aug 10, 2009 at 5:57 PM, Robocop <btha...@physics.ucsd.edu> wrote:

>
> Still seeing the same problem.  My new syntax looks like:
>           {% if product.main_image %}
>              <center>
>                          <h1>{{product.main_image.picture}}</h2>
>              {% thumbnail product.main_image.picture 150x200 as image
> %}
>              <a href="{{ product.get_absolute_url }}"><img
> src="{{ image }}" width="{{ image.width }}"
> height="{{ image.height }}" /></a>
>               </center>
>           {% endif %}
>
> Still stuck :/  The {{product.main_image.picture}} variable spits out
> the proper path to the picture, so the object is definitely there.
> Any more thoughts?
>
> On Aug 10, 12:56 pm, Chris Moffitt <ch...@moffitts.net> wrote:
> > You're close. Don't use Nesh, use Sorl.
> >
> > Take a look at this template for an example -
> http://bitbucket.org/chris1610/satchmo/src/tip/satchmo/apps/satchmo_s...
> >
> > You need something like this-
> >
> > {% load thumbnail %}
> > {% thumbnail product.main_image.picture 85x85 as image %}
> >               <a href="{{ product.get_absolute_url }}"><img src="{{
> > image }}" width="{{ image.width }}" height="{{ image.height }}" /></a>
> >
> > -Chris
> >
> > On Mon, Aug 10, 2009 at 2:08 PM, Robocop <btha...@physics.ucsd.edu>
> wrote:
> >
> > > Hello,
> > > I've so far tried using the nesh thumbnail filter, and the sorl
> > > thumbnail tag, and have failed miserably with both.  In the case of
> > > the nesh thumbnails, when i load the filter as recommended in the docs
> > > (http://code.google.com/p/django-utils/wiki/Thumbnail) with:
> >
> > > {% load nesh.thumbnail %}
> >
> > > I receive a "no valid template tag library" error, even though the app
> > > is loaded in my settings.py
> >
> > > When i try doing things with sorl, i look to have generated thumbnails
> > > in my image directory, however the images are never rendered on the
> > > page.  Using pdb i can step line by line through the code, and
> > > everything "appears" to be working, but still the images are not
> > > rendered on the page.
> >
> > > My syntax using sorl looks as:
> >
> > >              <img src={% thumbnail product.main_image.picture 150x200
> > > detail %} />
> >
> > > Could anyone offer any insight?  Or better yet, show me an example of
> > > the most basic syntax to display a thumbnail of a product image?
> > > Thanks!
> >
> >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to satchmo-users@googlegroups.com
To unsubscribe from this group, send email to 
satchmo-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to