Re: Password protect content

2015-11-02 Thread John
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  > 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 django-users+unsubscr...@googlegroups.com
> .
> To post to this group, send email to django-users@googlegroups.com
> .
> 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
> .
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.


Re: Password protect content

2015-11-02 Thread Russell Keith-Magee
Hi Andrew,

On Tue, Nov 3, 2015 at 12:37 AM, Andrew S  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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.


Re: Password protect content

2015-11-02 Thread Aaron C. de Bruyn
You might want to check out Apache .htaccess files for securing the files.
Django sounds like it might be overkill for password protecting files.

-A

On Mon, Nov 2, 2015 at 8:37 AM, Andrew S  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?
>
>
>
> Andrew
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> 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/25c9b615-5cfd-492b-b8f4-a6571fa982d7%40googlegroups.com.
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/CAEE%2BrGo_oVkqBC01SCrSJaT0d003Pk%2BqjF0v-%2BwW3QzFL9qn_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.