richleland/django-cumulus — pull request #62 by matthewwithanm (2013-01-14 23:24:27+00:00)
Title: Add Storage Prefixes

Adds a `prefix` kwarg to `CloudFilesStorage`, which specifies a string
to be prefixed to the filenames saved with the instance. Also adds
`PREFIX` and `STATIC_PREFIX` settings, which are the default prefix
values for `CloudFilesStorage` and `CloudFilesStaticStorage` instances,
respectively.

This fixes `CloudFilesStaticStorage.save` and
`CloudFilesStaticStorage.url`, which use unprefixed names, making them
incompatible with the syncstatic command (which always used `STATIC_URL`
as a prefix).

It also modifies the behavior of syncstatic so that, when a prefix is used, only files with that prefix will be deleted.