Tuesday, August 11, 2015

Re: Serving uploaded files from multiple storages

On Tue, Aug 11, 2015 at 6:17 PM, 'Hugo Osvaldo Barrera' via Django
users <django-users@googlegroups.com> wrote:
> I've an app where files are uploaded to differente storages:


i would create a new storage object with a configuration that
associates some prefix with other 'backend' storage objects. then
implement each storage method by stripping the prefix, using it to
determine the apropriate backend, and calling it with the rest of the
path.

--
Javier

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFkDaoTMnMS9egF3Mvvs1%2B%2B1tw-Khsn3BP-_VR1N-O0wLeqqEg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment