Does django-filer work with Rackspace CloudFiles / cumulus?

105 views
Skip to first unread message

Phil Gyford

unread,
Nov 16, 2012, 1:16:32 PM11/16/12
to django...@googlegroups.com
I'm looking for a good way to manage files uploaded from the Django Admin to Rackspace CloudFiles... I may have missed it but I couldn't see anything that said django-filer would work with django-cumulus as a backend to allow this. Has anyone managed it?

Phil

Stefan Foulis

unread,
Nov 16, 2012, 6:01:22 PM11/16/12
to django...@googlegroups.com
I've never tried django-filer with Rackspace CloudFiles... but the S3 backend works fine. I'd expect it to work similarly well with the django-cumulus storage backend.

--Stefan

Phil Gyford

unread,
Nov 20, 2012, 10:41:31 AM11/20/12
to django...@googlegroups.com
Thanks Stefan - just to confirm, django-filer does work with Rackspace Cloudfiles. Much easier than I expected, thanks!

Stefan Foulis

unread,
Nov 20, 2012, 10:51:09 AM11/20/12
to django...@googlegroups.com
cool. thanks for the info :-)

Phil Gyford

unread,
Nov 20, 2012, 11:46:58 AM11/20/12
to django...@googlegroups.com
The only odd thing is that the progress bar shows 100% during the entire upload, until it's finished. I *think* I remember reading this was a problem when using S3 as storage, so maybe it's a general cloud storage issue that's tricky to fix?

Ioan Alexandru Cucu

unread,
Nov 26, 2012, 9:09:10 AM11/26/12
to django...@googlegroups.com
S3 backend does have a problem...
I'm using django-storages' s3boto backend, and when uploading two different files with the same name, the second file will overwrite the first. This happens even if the two files are stored in two different logical folders.

When using django's default FileSystemStorage the files don't get overwritten due to django.core.files.storage.Storage.get_available_name returning a suffixed file name in case of conflict.

Anyways, the S3 backend is the buggy one, not filer. Just be extra careful with how the storage backend handles some of the corner cases...

Stefan Foulis

unread,
Nov 26, 2012, 9:52:56 AM11/26/12
to django...@googlegroups.com
thanks for the hint. I guess this would be another reason to use some randomised path instead of the date based one.
Reply all
Reply to author
Forward
0 new messages