Multi-gallery image gallery application for Django.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Django Image Gallery

Multi-gallery image gallery for Django.

Installation from Source

$ git clone git://
$ cd django-image-gallery
$ python install

Installation via PIP Requirements File

Include in the PIP requirements file the following lines:

-e git://

And then install as normal (IE:)

$ pip install -r path/to/requirements/file.txt

Setup the Project For the Application

Add to the project's settings file tuple of INSTALLED_APPS:


If you're using South, initiate the gallery application.

$ python schemamigration gallery --auto

Sync the database to finish installing sorl-thumbnail and gallery if you aren't using South.

$ python syncdb

If you're using South, migrate the gallery application to finish installing it.

$ python migrate gallery

In the project's file add:

url(r'^gallery/', include('gallery.urls')),

A list of galleries can now be linked to:

<a href="{% url 'gallery_list' %}">Image Galleries</a>

Individual galleries can be linked to by passing their slug to gallery_detail:

<a href="{% url 'gallery_detail' 'slug' %}">A Gallery</a>

Configure the Templates

By default the templates contain only the bare necessities. To override the default templates, create a directory called gallery in your templates directory and copy the templates from the project into that directory in order to make adjustments to them. If you're using Virtualenv, cd to the root of the django project and execute the following command:

cp -r $VIRTUAL_ENV/src/django-image-gallery/gallery/templates/gallery templates/gallery