Re: Authentication for static files

2009-09-27 Thread Ben Davis
Actually, I just found out about the X-Sendfile header which I think might solve this problem. It basically allows you to set the HttpResponse content to an empty string, but the X-Sendfile header tells apache to send a file from the filesystem, so apache handles the actual serving of the file,

Re: Authentication for static files

2009-09-26 Thread Graham Dumpleton
On Sep 27, 3:08 am, Ben Davis wrote: > I would like to be able to serve files that were uploaded via the admin > site;  for example, when someone clicks on the "Currently:" file link in the > changeform.  However, I also have the following requirements: > >    1. The file should only be accessi

Authentication for static files

2009-09-26 Thread Ben Davis
I would like to be able to serve files that were uploaded via the admin site; for example, when someone clicks on the "Currently:" file link in the changeform. However, I also have the following requirements: 1. The file should only be accessible when authenticated via django's auth system