On Tue, Aug 11, 2015, at 23:10, Javier Guerra Giraldez wrote:
> 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.
> 

So, if I understand correctly, have an intermediate storage that
delegates to the proper one according to a path prefix received, and
expose the paths as full URLs to include in my template, is that it?

Makes sense. A wee bit ugly for my taste, but I guess there's no cleaner
solution.

Thanks,

-- 
Hugo Osvaldo Barrera

-- 
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+unsubscr...@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/1439390419.623249.354397673.7CD5DCC9%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to