Hi,

On 23 April 2010 07:15, Richard Taylor <[email protected]>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi
>
> There is a problem with the file permissions given to uploaded images. I
> assume these are uploaded through the Django app. The files are created
> with 770. As they are owned by www-data they can not be read by the web
> site build script.
>
> I have corrected the permissions on the image that was created last night:
>
> - -rwxrwx--- 1 www-data www-data  270145 2010-04-22 20:03
> images/uploads/headshot.jpg
>
> Can someone that understands the Django stuff look at changing the
> permissions used?
>

I've changed the upload directory's group to 'pycon' and set its setgid bit:
that should fix it for anyone building the site under an appropriate login.

But why doe the website build script need to read them anyway?

They need manual processing to get the sizes right before being placed in
the images/speakers directory.

John
-- 
EuroPython is coming! - http://www.europython.eu - 17th-24th July 2010,
Birmingham, UK
_______________________________________________
Europython-improve mailing list
[email protected]
http://mail.python.org/mailman/listinfo/europython-improve

Reply via email to