mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-16 21:30:23 +00:00
This extra layer of indirection allows us to tack some attributes (name and content_type) onto the underlying file, which we cannot do with a StringIO since it's a native ctype. These attributes are used by various third-party software that expects to work with django.core.files.File instances, and not directly with StringIO instances. By way of example, the django-storages mosso backend (CloudFilesStorage) looks for a content_type attribute, and the cloudfiles Object backend looks for a name attribute. |
||
|---|---|---|
| .. | ||
| management | ||
| models | ||
| processors | ||
| templates/imagekit/admin | ||
| __init__.py | ||
| admin.py | ||
| generators.py | ||
| imagecache.py | ||
| lib.py | ||
| settings.py | ||
| utils.py | ||