I'd try to use HttpResponse as a file object. As in http://docs.djangoproject.com/en/dev/howto/outputting-pdf/#write-your-view.
I'm thinking of something like this in the view: response = HttpResponse(mimetype="<whatever>") input = read contents of your hidden file response.write(input) return response On Thu, Oct 1, 2009 at 10:18 PM, Rodrigo Cea <[email protected]> wrote: > > I am creating a password-protected file repository. I would like to > create a login_required view that returns the file without revealing > it's actual location in the file system. > Can I return an actual file (not it's location) from a view? > > > -- http://www.diptera.com.br --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

