On Thu, Aug 13, 2009 at 3:43 PM, stupidgeek<thestupidg...@gmail.com> wrote:
> Thanks to both of you for the advice - Ben, yours seems to be like a
> step four to Javier's solution. I like it, but will only say I'll
> maybe try it once I've got the serving done Javier's way.

what i get from Ben's comment is more like my step 2, but with a
couple extra hoops to get to the URL.  doesn't do anything for
security, since in he ends serving the file with Django anyway.

> Javier, could you post some example code? I'm pretty sure this is bang-
> on what I want, although as I said, I'm using apache.

this is what i do on views.py: http://dpaste.com/80251/

for Apache, you have to use 'X-Sendfile' instead of
'X-Accel-Redirect'.  i don't know if you have to add the private
directory to some configuration.  (in nginx i had to register the
directory with a 'private' flag)


-- 
Javier

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to