I have a Django app where all pages work except for 2: a page with lots of images and another page with a big image.
When accessed, this pages yield a 504 within 30seconds to 1 minute.
I am using Django - sorl , so I think the 504 comes from sorl processing the thumbnails on first access:
I tried setting the apache TimeOut to 800, but it did not work.
I ran into a webfaction page that said the timeout is a global setting, hence, changing it from apache's httpd.conf would not work.
Is there any other way to set the timeout?
No, there is no other setting other than in your application. However timeout should not be effected by an image, the image is only 1 file and not the django code which actually renders the site, it is likely not a simple timeout issue, but something within code which is timing out. If you are serving static media as outlined here, than it will be served by nginx, and so the image size should not effect it at all.
answered Jul 29 '12 at 17:21