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/#upload-handlers 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.