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