Re: How to server static media secured by Django authentication

2009-11-20 Thread Glenn Tenney
At 11:49 PM -0600 9/11/09, Gabriel Gunderson wrote: >On Fri, Sep 11, 2009 at 3:03 PM, Jim Myers wrote: >> I have a requirement to serve static files only to users authenticated >> through Django secure login. > >http://docs.djangoproject.com/en/dev/howto/apache-auth/ I've got a similar, but sl

Re: How to server static media secured by Django authentication

2009-09-13 Thread Lars Holm Nielsen
Hi, There's a couple of ways to do this, but none of them is really as easy as using basic/digest authentication in apache. Most of the methods posted until now passes the static file through django or at least python, which might not be ideal depending on your performance requirements. Anyway,

Re: How to server static media secured by Django authentication

2009-09-12 Thread Graham Dumpleton
On Sep 13, 2:30 am, Jim Myers wrote: > I had looked at that page before, but had thought it only applied to > mod_python. > Does it also apply to mod_wsgi?  If so, the page could be made > clearer. It doesn't. Read instead: http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms This

Re: How to server static media secured by Django authentication

2009-09-12 Thread Jim Myers
I had looked at that page before, but had thought it only applied to mod_python. Does it also apply to mod_wsgi? If so, the page could be made clearer. On Sep 11, 10:49 pm, Gabriel Gunderson wrote: > On Fri, Sep 11, 2009 at 3:03 PM, Jim Myers wrote: > > I have a requirement to serve static fil

Re: How to server static media secured by Django authentication

2009-09-11 Thread Gabriel Gunderson
On Fri, Sep 11, 2009 at 3:03 PM, Jim Myers wrote: > I have a requirement to serve static files only to users authenticated > through Django secure login. http://docs.djangoproject.com/en/dev/howto/apache-auth/ Gabe --~--~-~--~~~---~--~~ You received this message

Re: How to server static media secured by Django authentication

2009-09-11 Thread Javier Guerra
On Fri, Sep 11, 2009 at 4:26 PM, Tim Chase wrote: > You may be interested in: > > http://code.djangoproject.com/ticket/2131 > > Both mod_python and mod_wsgi support the ability to return a > header that instructs the web-server to "dump this local file > back as my response" freeing up Django res

Re: How to server static media secured by Django authentication

2009-09-11 Thread Tim Chase
> I have a requirement to serve static files only to users authenticated > through Django secure login. You may be interested in: http://code.djangoproject.com/ticket/2131 Both mod_python and mod_wsgi support the ability to return a header that instructs the web-server to "dump this local file

Re: How to server static media secured by Django authentication

2009-09-11 Thread Maksymus007
On Fri, Sep 11, 2009 at 11:03 PM, Jim Myers 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 fo

How to server static media secured by Django authentication

2009-09-11 Thread Jim Myers
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 t