Re: How control access to static pages that are *not* part of a Django app?

2011-08-01 Thread DrBloodmoney
On Mon, Aug 1, 2011 at 3:51 PM, Chris Seberino wrote: > > > On Aug 1, 7:11 am, DrBloodmoney wrote: >> You can look into protecting them with mod_xsendfile for Apache > > Thanks.  I'll look into that.  Is there no way to have a view hand off > a page to Apache? Like Javier mentioned, this is exac

Re: How control access to static pages that are *not* part of a Django app?

2011-08-01 Thread Javier Guerra Giraldez
On Mon, Aug 1, 2011 at 2:51 PM, Chris Seberino wrote: > Thanks.  I'll look into that.  Is there no way to have a view hand off > a page to Apache? > If there was, I could have a view that was password protected and only > when I was in the view would I allow the apache page to be served. that's e

Re: How control access to static pages that are *not* part of a Django app?

2011-08-01 Thread Chris Seberino
On Aug 1, 7:11 am, DrBloodmoney wrote: > You can look into protecting them with mod_xsendfile for Apache Thanks. I'll look into that. Is there no way to have a view hand off a page to Apache? If there was, I could have a view that was password protected and only when I was in the view would I

Re: How control access to static pages that are *not* part of a Django app?

2011-08-01 Thread DrBloodmoney
On Mon, Aug 1, 2011 at 1:12 AM, Chris Seberino wrote: > My Django app only allows someone to access a /books page, that is > part of the Django app, if they are signed in. > > The pages below that URL are just static directory listings of PDFs > all handled by Apache. > For example /books/book_1,

Re: How control access to static pages that are *not* part of a Django app?

2011-07-31 Thread Shawn Milochik
I'm dealing with the same issue, and it looks like I'm probably going to adopt django-private-files for this. http://pypi.python.org/pypi/django-private-files/0.1.2 It's on Read The Docs, bitbucket, and github. It does what I need it to do, it works with nginx, and it's been maintained recentl

How control access to static pages that are *not* part of a Django app?

2011-07-31 Thread Chris Seberino
My Django app only allows someone to access a /books page, that is part of the Django app, if they are signed in. The pages below that URL are just static directory listings of PDFs all handled by Apache. For example /books/book_1, /books/book_2, etc. Because these directory listings aren't handl