stefanfoulis/django-filer — pull request #181 by bradenmacdonald (2012-03-30 23:27:31+00:00)
Title: Fixes for using S3 storage

I am in the process of moving all my static content to Amazon S3. In order to get django-filer to work properly, I needed to make the changes shown here.

The first change allows you to configure a storage backend using a string, such as:

```
FILER_PUBLICMEDIA_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
```
This is the same format used by the `[PROJECT]_STORAGE` settings of other Django projects, and this avoids issues with circular imports.

The other commit addresses an issue I was experiencing where all uploaded files would be truncated to zero size. I'm not sure if this `seek(0)` should be added to `django-storages`, `django-filer`, or `easy_thumbnails`, as all three projects are involved in my setup (this may only show up when `AWS_PRELOAD_METADATA` is enabled, but I haven't tested without). However, putting it here in django-filer has definitely fixed the issues I was experiencing.