Comments (2)
I see an error:
File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/vit/projects/oboiray.ru/oboi/shared/django_images/views.py", line 12, in thumbnail
return redirect(models.Thumbnail.objects.get_or_create_at_size(image.id, size))
File "/Users/vit/projects/oboiray.ru/oboi/shared/django_images/models.py", line 84, in get_or_create_at_size
thumbnail = image.thumbnail_set.create(size=size, image=thumb_file)
File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/db/models/fields/related.py", line 485, in create
return super(RelatedManager, self.db_manager(db)).create(**kwargs)
File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create
return self.get_query_set().create(**kwargs)
File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create
obj = self.model(**kwargs)
File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/db/models/base.py", line 369, in __init__
signals.post_init.send(sender=self.__class__, instance=self)
File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 172, in send
response = receiver(signal=self, sender=sender, **named)
File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/db/models/fields/files.py", line 378, in update_dimension_fields
width = file.width
File "/Users/vit/.virtualenvs/oboiray/lib/python2.7/site-packages/django/core/files/images.py", line 15, in _get_width
return self._get_image_dimensions()[0]
TypeError: 'NoneType' object is not subscriptable
from django-images.
Try filing a bug in PIL as it seems unable to open the image in question.
from django-images.
Related Issues (10)
- Can't install from pypi HOT 2
- Any chance to describe how to setup IMAGE_PATH in settings.py? HOT 5
- Request: Delete physical files on object delete HOT 1
- Support input multipart
- Provide a management command to delete all images of a particular size
- Warnings - Models don't declare an explicit app label HOT 3
- New tag?
- Replace PIL dependency with pillow HOT 1
- Thumbnail unique_together constraint allows for duplicated entries HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-images.