I have a question for "make apache deliver it". How to control the access right? Integrate apache access auth model with Django?
On Sep 22, 10:37 pm, Javier Guerra <jav...@guerrag.com> wrote: > On Tue, Sep 22, 2009 at 8:09 AM, Jonas Obrist <ojiido...@gmail.com> wrote: > > I wanna store files (attachments to forum posts) outside the MEDIA_ROOT > > to restrict file downloads to registered users. So I'd have to server > > them through django instead of apache. What would be the better way to > > do this: Store them in a the database or store them in the filesystem as > > actual files? > > - store in the filesystem > - in the view that would serve them, don't read the data, but send an > "X-SendFile" header to make apache deliver it. > > -- > 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 -~----------~----~----~----~------~----~------~--~---