This is really cool, something I didn't know existed and something I will use immediately. Thanks.
John On 02/11/15 21:59, Russell Keith-Magee wrote: > Hi Andrew, > > On Tue, Nov 3, 2015 at 12:37 AM, Andrew S <[email protected] > <mailto:[email protected]>> wrote: > > Hello, > > I have a folder full of HTML files that will reside on a subdomain. > > I would like to password protect these with user accounts etc. > > > Can this be easily completed with Django? is there any packages > that already do this? > > > Yes, and Yes. > > The magic keyword you’re missing is X-SENDFILE - it’s a HTTP header > that lets Django manage authentication, but your static file server > handle delivering the actual content. > > Here’s a blog post to show you how to set it up. > > http://www.paulpepper.com/blog/2014/02/django-x-sendfile-and-apache/ > > Yours, > Russ Magee %-) > -- > You received this message because you are subscribed to the Google > Groups "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAJxq84803EoVt9qxOwqHP1S-uxCecu3K8jdCBfMpp8VE1%3DCyvg%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAJxq84803EoVt9qxOwqHP1S-uxCecu3K8jdCBfMpp8VE1%3DCyvg%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/563805A3.9060302%40martinhome.org.uk. For more options, visit https://groups.google.com/d/optout.

