Re: sorl thumbnail: messed-up thumb file path

2009-12-06 Thread omat
It is not something to do with the upload_to path. I managed to track down the problem, I was passing the full url to the thumbnail templatetag (i.e. "provider.logo.url") but it should be just the relative URL (i.e. "provider.logo"). Thanks. -- omat On Dec 6, 9:10 pm, SmileyChris wrote: > u

Re: sorl thumbnail: messed-up thumb file path

2009-12-06 Thread SmileyChris
upload_to should not have a trailing slash On Dec 7, 5:16 am, omat wrote: > The model is as simple as can be: > > class Provider(models.Model): >     name = models.CharField(max_length=100) >     logo = models.ImageField(upload_to='logo/', >                              blank=True, null=True) > >

Re: sorl thumbnail: messed-up thumb file path

2009-12-06 Thread omat
The model is as simple as can be: class Provider(models.Model): name = models.CharField(max_length=100) logo = models.ImageField(upload_to='logo/', blank=True, null=True) Thanks. -- omat On Dec 6, 4:45 pm, Kenneth Gonsalves wrote: > On Sunday 06 Dec 200

Re: sorl thumbnail: messed-up thumb file path

2009-12-06 Thread Kenneth Gonsalves
On Sunday 06 Dec 2009 4:27:47 pm omat wrote: > Sorl thumbnail is creating invalid directories for thumbnails in my > development environment (mac os x, django dev server). > do not blame Sorl thumbnail - please post that part of your model that shows 'upload_to' setting. -- regards Kenneth Gons

sorl thumbnail: messed-up thumb file path

2009-12-06 Thread omat
Hi All, Sorl thumbnail is creating invalid directories for thumbnails in my development environment (mac os x, django dev server). In my local development settings: MEDIA_URL = "http://localhost:8000/"; I use the "thumbnail" template filter and it generates crazy directories under my media root