jdriscoll/django-imagekit — Issue #57: Allow for a "missing image" image setting
Author: ptone
Created: 2011-11-09 03:59:18+00:00
State: open

If an imagespec references an imagefield that does not have a file, this will raise a ValueError exception.

This can cause entire gallery pages or the admin to err even if the issue is just with a single model

I propose a setting: IMAGEKIT_MISSING_IMAGE which would be a str URL, or a callable (not sure what if any args it would take, maybe the original imagespec - or the model instance?)

This would then be the URL used for ie, model_instance.thumbnail_imagespec.url

a callable would allow something like the use of http://placehold.it