I'd like to restrict access to a folder of documents to only those who are currently logged into my Django website. I know that it is bad practice to serve up files directly from Django (since this should be Apache's job), so what is the best practice here? I've read about installing mod_xsendfile and then simply having an authentication-required view that does something like this:
However, I'm not positive on the steps I need to follow to install mod_xsendfile on my existing Django installation on Webfaction. (My linux skills are still a bit lacking, sadly. But I'm good at following directions!) Any help is greatly appreciated. Thanks! asked 13 Oct '11, 09:00 vkdev |
We have a post on our old forums on how to install mod_xsendfile. Don't forget to specify
in your httpd.conf file (for mod_xsendfile 0.12 and up) If you don't want to use mod_xsendfile you could use this from Stackoverflow:
answered 13 Oct '11, 09:26 timg ♦♦ Thanks, the instructions on installing mod_xsendfile worked out great.
(14 Oct '11, 12:22)
vkdev
On older (RedHat 3/4) servers, you can't use
Hope that helps!
(27 Oct '11, 22:47)
ryans ♦♦
|