NotImplementedError at /api/items/
subclasses of Storage must provide an exists() method
// models.py
class class:
image = VersatileImageField(storage=AWSStorage(), blank=True)
// serializers.py
class ItemsSerializer(serializers.ModelSerializer):
image = VersatileImageFieldSerializer(
sizes=[
('full_size', 'url'),
('thumbnail', 'thumbnail__100x100'),
('medium_square_crop', 'crop__400x400'),
('small_square_crop', 'crop__50x50')
]
)
class Meta:
model = Items
fields = (
'title',
'image'
)
commented on March 12th 20 at 08:11Find more questions by tags Django
In settings.py
- does not help - litzy_Kr commented on March 12th 20 at 08:09