Hi,

I have a django 'files' app that simply maps 'virtual' file names to
physical files for downloading.

Currently, I'm getting the view to return a HttpResponseRedirect to a
'files' area, but I don't like this as it means the files are
'publicly' available and I'd like everything to go through the Django
view.

I couldn't find a 'HttpResponseStaticFile' class or anything, so what
other options do I have?

Can I just 'print' the file in the download script and return 'null'
from the view or something?

Another possiblity would be to bypass the Django url scheme and set up
apache to run the download script directly via mod_python and again
just 'print' the file, but I'd rather everything went through Django if
possible.

Also, how efficient would it be to send a file via python? I'm
currently doing this with php on another site and it works OK, but it
doesn't 'feel' right!

What I kind of need is something like a 'private redirect' - ie: I want
apache to do 'serve' the file, but I don't want the client to know
about the redirect.

Bye!
Mark


--~--~---------~--~----~------------~-------~--~----~
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to