GoodCloud/django-ajax-uploader — pull request #11 by fhahn (2011-11-12 21:56:16+00:00)
Title: first test and local_backend with default storage

Hi,

I've added a first test for the LocalUploadBackend and modified LocalUploadBackend to use default_storage.

LocalUploadBackend uses the Django File [0] and Storages API [1] to save uploaded files, so it should be possible to switch the default storage (django-storages [2] provides a lot of different storage backends) and upload files to that storage with the LocalUploadBackend. I've only tested it with the FileSystemStorage (the "default storage") so far, but I'm going to test it with other backends soon.

What do you think of the changes?
Should I move the default storage stuff to a new backend and leave the old LocalUploadBackend as it is?

Cheers,
Flo

[0] https://docs.djangoproject.com/en/1.3/ref/files/file/
[1] https://docs.djangoproject.com/en/1.3/ref/files/storage/
[2] https://bitbucket.org/david/django-storages/src