On Fri, Sep 11, 2009 at 11:03 PM, Jim Myers <[email protected]> wrote:
>
> I have a requirement to serve static files only to users authenticated
> through Django secure login.
> That means I can't use apache basic/digest authentication for those
> files.
>
> So far in my searches of the web and Django docs, I've found no way to
> do this.
> Of course my alternative is to serve ALL the static files through
> Django but that's not very palatable.
>

Its the only way to do this, as long as django auth is required.
You can write your own static file serving function and add caching
(memcache?) to it.

But you can try to, for example, make directories named like session
cookie hash and force user to get all static content there, serving
thgouh apache

--~--~---------~--~----~------------~-------~--~----~
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