My name is Gustavo, from colombia. first of all I wanted to say thanks because we are using django_resto for our repository and we think is an impressive and easy to use tool..
However, recently we had to include some new features to django admin interface, letting adminstrator to upload images to specific models.. This is causing the need to change the media url and the default storage in the settings..
In your Readme document, you specify "You can also enable a backend only for selected fields in your models.", but I've been trying to do it without success.
I put in my model this parameter:
from django_resto.storage import DistributedStorage
Greetings.
My name is Gustavo, from colombia. first of all I wanted to say thanks because we are using django_resto for our repository and we think is an impressive and easy to use tool..
However, recently we had to include some new features to django admin interface, letting adminstrator to upload images to specific models.. This is causing the need to change the media url and the default storage in the settings..
In your Readme document, you specify "You can also enable a backend only for selected fields in your models.", but I've been trying to do it without success.
I put in my model this parameter: from django_resto.storage import DistributedStorage
models.FileField(..., storage=DistributedStorage...)
We don't know what are we missing.
Thanks in advance.
Note: error displayed when we try to upload a new instance of the model...
unbound method save() must be called with DistributedStorage instance as first argument (got unicode instance instead)