Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/d/j/django-thumbnails-0.1.0/thumbnails/files.py   django-thumbnails(Download)
from django.db.models.fields.files import ImageFieldFile
from . import conf, images
from .backends.storage import get_backend
from .images import Thumbnail, FallbackImage

src/d/j/django-thumbnails-0.1.0/thumbnails/fields.py   django-thumbnails(Download)
    def __init__(self, *args, **kwargs):
        self.resize_source_to = kwargs.pop('resize_source_to', None)
        if kwargs.get('storage'):
            raise ValueError('Please define storage backend in settings.py instead on the field itself')
        kwargs['storage'] = storage.get_backend()