El mar, 26-06-2007 a las 08:14 -0700, john-f escribió: > Hi all, > > I'm getting 500 errors when trying to upload a image file with the > django admin. > I think this has to do with user/group permissions on the media > directory (currently they are owned by lighttpd:lighttd) > Does anyone know what 'user' is being run to actually do the saves? I > think it's the apache user but I could be wrong. > Anyways in my group file I added apache to the lighttd group. > > Does anyone have any ideas? I'd appreciate the help. Thanks. > > My setup: > Apache and fast_cgi serves the django pages > Lighttpd serves media > Db run off another server
Of course, the media you're saving is being processed by python, and that's apache, if that config is right. Lighttpd is *serving* static files, but upload is being done by apache. Make sure the directory (and, just in case, it's parent) is writable by the appropiate user or group. If unsure, set to 777 to see if it's a permission problem, and don't forget to set it back to something more secure once your test is done. Have a look at apache logs (error logs specially) and make sure django has DEBUG = True. If with DEBUG on you're still getting 500 pages (and not a django error page), the problem will be reported in apache's error log, scattered through a few lines, so remember to look further upwards than the last line. Be sure to write back with your results, even if they're good. We like to know if we're helping or just dropping dumb lines :) Good Luck, Chris Hoeppner www.pixware.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

