Thanks Andre -- that got me pointed in the right direction. I think that this solution[1] to upload outside of MEDIA_ROOT for a specific field, plus this module[2] to abstract and offload as much of the file serving effort as possible to the underlying server might do the trick. I'll post back if any other complications arise.
[1] http://stackoverflow.com/questions/1729051/django-upload-to-outside-of-media-root [2] https://github.com/johnsensible/django-sendfile On Nov 11, 11:38 am, Andre Terra <andrete...@gmail.com> wrote: > Hello, Nan > > Please read through the File Uploads docs, especially the bit concerning > upload handlers[1]. Good luck! > > Cheers, > AT > > [1]https://docs.djangoproject.com/en/dev/topics/http/file-uploads/#uploa... > > > > > > > > On Fri, Nov 11, 2011 at 2:30 PM, Nan <ringe...@gmail.com> wrote: > > Hi folks -- > > > I know a related topic has been addressed recently on this list, but > > I've got a twist: > > > - Media uploaded by the staff via the admin interface needs to be > > served quickly, with minimal load, directly via Apache / lighttpd / > > nginx / whatever. Ditto for fully-static media. > > > - Media uploaded by users needs to be protected and restricted to > > access by that user -- i.e. served by Django. > > > I'd love to essentially have two different MEDIA_ROOT directories (one > > in a place that the server can serve directly, one not), but don't > > know how to make Django do that. > > > Is there any way to accomplish this without twisting myself in knots? > > FWIW, this project is being hosted in multiple different server > > environments, from nginx + apache/mod_wsgi to FCGI to lighttpd. > > > Thanks, > > -Nan > > > -- > > 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. -- 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.