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
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):
2 matches
Mail list logo