django-any-imagefield 0.8.2

A switchable ImageField for third party Django applications


This module offers a abstraction over the various image fields, so allow third party applications can provide an imagefield at the authors choice.

Supported image fields:


First install the module, preferably in a virtual environment. It can be installed from PyPI:

pip install django-any-imagefield

Or the current folder can be installed:

pip install .


Add the module to the installed apps:



In a Django model, the field can be included:

from django.db import models
from any_imagefield.models import AnyImageField

class Article(models.Model):
    title = models.CharField("Title", max_length=200)
    image = AnyImageField("Image", upload_to='images')

    class Meta:
        verbose_name = "Article"
        verbose_name_plural = "Articles"

    def __unicode__(self):
        return self.title

By default, the AnyImageField displays a standard ImageField with a preview thumbnail. When django-filebrowser-no-grappelli-django14 or django-filebrowser-no-grappelli is installed, it will use the FileBrowseField from that package to display the file/image browser. When your package has it's own ImageField variant/subclass, please consider to add support for it in this package.


This module is designed to be generic. In case there is anything you didn't like about it, or think it's not flexible enough, please let us know. We'd love to improve it!

If you have any other valuable contribution, suggestion or idea, please let us know as well because we will look into it. Pull requests are welcome too. :-)

Apache 2.0


Diederik van der Boor




  • Environment :: Web Environment
  • Framework :: Django
  • Intended Audience :: Developers
  • Operating System :: OS Independent
  • Programming Language :: Python
  • Programming Language :: Python :: 2.6
  • Programming Language :: Python :: 2.7
  • Development Status :: 4 - Beta
  • License :: OSI Approved :: Apache Software License
  • Topic :: Software Development :: Libraries :: Python Modules
  • Topic :: Internet :: WWW/HTTP


File Type Python Version Uploaded On Downloads
django_any_imagefield-0.8.2-py2-none-any.whl Wheel 2.7 Aug. 15, 2014 2,175
django-any-imagefield-0.8.2.tar.gz Source Aug. 15, 2014 1,282
Version Release Date
0.8.2 Aug. 15, 2014
0.8.1 April 10, 2013
0.8.0 April 10, 2013
Date Package Version Action
Aug. 24, 2015, 10:58 p.m. django-any-imagefield 0.8.2 Release Created
Aug. 24, 2015, 10:58 p.m. django-any-imagefield 0.8.0 Release Created
Aug. 24, 2015, 10:58 p.m. django-any-imagefield 0.8.1 Release Created
Aug. 24, 2015, 10:58 p.m. django-any-imagefield Package Created