Solved by setting the <media>/cache/ directory to be owned by (on
Ubuntu) www-data:www-data

and to correct my earlier guess,  <media>/cache/...  is the location
of the generated thumbnails, not temp storage.

-h

On Dec 23, 11:52 am, Heath <[email protected]> wrote:
> By enabling sorl's error - reporting I get this error:
>
> Caught OSError while rendering: (13, 'Permission denied')
> Exception Location:     /usr/lib/python2.6/os.py in makedirs, line 157
>
> So in tracing the error, I find that the os is trying to create a path
> in:
>
> <media>/cache/c4/dd
>
> I'm guessing this is temp storage. As a debug measure I have made the
> <media> dir world-writable. I've even tried creating a group, making
> apache a member and chgrp the <media> path, all to no avail.
>
> Remember, no error occurs when requesting the thumbnail generation via
> the development server.
>
> Anyone have any thoughts on this? They would be most welcome.
>
> cheers,
>
> -h
>
> On Dec 21, 3:51 pm, Heath <[email protected]> wrote:
>
> > Hello, I am using sorl  thumbnail generation and all works well under
> > the Django development server.
>
> > On the production server (Apache:81-django; Lighttpd:80- static),
> > there is no key/value created in response to the template tag request,
> > and hence, no thumbnail generated.
>
> > If the same view is then rendered via the Django Development server, A
> > key/value and thumbnail is generated. Then, a subsequent refresh via
> > the production server will return the thumbnail as expected.
>
> > Is there and Apache specific configuration I need to set?
>
> > cheers,
>
> > -heathcarlisle

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to