Re: howto view thumbnails on webpage generated by {% thumbnail ...%}?

2009-01-23 Thread nmr
dd this code > >  urls.py > > DIRNAME = os.path.dirname(__file__) >     (r'^photos/(.*)$', 'django.views.static.serve', {'document_root': > os.path.join(DIRNAME, "photos")}), > > pls answer me if your code will ok > > 2009/1/23

howto view thumbnails on webpage generated by {% thumbnail ...%}?

2009-01-23 Thread nmr
Hi. I'm having problem to view my thumbnails. I'm using sorl for thumbnail creation and uploading: model.py: class Photo(models.Model): text=models.TextField(max_length=50) photo=ImageWithThumbnailsField(upload_to='photos/',thumbnail= {'size': (50, 50)}) def __unicode__(self):