Skip to main content

an app for managing collections of images associated with a content object

Project description

an app for managing collections of images associated with a content object


Pinax is an open-source platform built on the Django Web Framework. It is an ecosystem of reusable Django apps, themes, and starter project templates. This collection can be found at

Getting Started


pip install pinax-images


INSTALLED_APPS += ["pinax.images"]

Add to

url(r"^ajax/images/", include("pinax.images.urls")),

Add a ForeignKey on your content object to ImageSet:

image_set = models.ForeignKey(ImageSet, blank=True, null=True)

In your view or views for creating or updating the content object, you can capture the pk for the ImageSet that is possibly created:

pk = request.POST.get("imageset")
if pk and (object.image_set is None or != int(pk)):
    object.image_set = next(iter(request.user.image_sets.filter(pk=pk)), None)

Finally, you’ll want to include a snippet like this wherever you want the panel to appear (if you are using the [associated ReactJS frontend](

{% if image_set %}
    {% url "images_set_upload" as upload_url %}
{% else %}
    {% url "images_set_new_upload" as upload_url %}
{% endif %}
<div id="image-panel" data-images-url="{% if image_set %}{% url "images" %}{% endif %}"
                      data-upload-url="{{ upload_url }}"
                      data-image-set-id="{{ }}">

Code of Conduct

In order to foster a kind, inclusive, and harassment-free community, the Pinax Project has a code of conduct, which can be found here

Pinax Project Blog and Twitter

For updates and news regarding the Pinax Project, please follow us on Twitter at @pinaxproject and check out our blog

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pinax-images-0.1.tar.gz (5.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page