Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

sorl-thumbnail support for a Django Tastypie

Project description Code Climate

Add a sorl-thumbnail support for a Django Tastypie.


Install package via pip

pip install django-tastypie-sorl-thumbnail


from tastypie.authentication import Authentication
from tastypie.authorization import Authorization
from tastypie.resources import ModelResource
from tastypie_sorl_thumbnail.fields import ThumbnailField

from .models import Photo

class PhotoResource(ModelResource):
    thumbnail = ThumbnailField('photo', '120', quality=80)

    class Meta(object):
        queryset = Photo.objects.all()
        resource_name = 'photo'
        authentication = Authentication()
        authorization = Authorization()


Configure tastypie-sorl-thumbnail logger.


$ python test


$ python test tastypie_sorl_thumbnail

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_tastypie_sorl_thumbnail-0.1.5-py2.py3-none-any.whl (4.8 kB) Copy SHA256 hash SHA256 Wheel 3.5
django-tastypie-sorl-thumbnail-0.1.5.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page