skip to navigation
skip to content

django-daguerre 2.1.2

On-the-fly image manipulation for Django 1.7+.

Latest Version: 2.1.4


**Django Daguerre** makes it easy to adjust images on-the-fly without
slowing down your templates and without needing to generate everything
ahead of time with a cron job. You don't need to make any changes to
your models; it **Just Works**.

.. code-block:: html+django

{% load daguerre %}
<img src="{% adjust my_model.image " fill"="" width="200" height="400" %}"=""/>

{% adjust_bulk my_queryset "method.image" "fill" width=200 height=400 as adjusted_list %}
{% for my_model, image in adjusted_list %}
<img src="{{ image }}"/>
{% endfor %}

:build status: |build-image|

.. |build-image| image::


* Python 2.7+, 3.3+
* Pillow 2.3.0+
* Django 1.7+
* Six 1.5.2+

Daguerre *may* work with earlier versions of these packages, but they are not officially supported.

Upgrading from 1.0.X

Daguerre 2.1 and up use native Django migrations. If you are
migrating from Daguerre 1.0, and you have manually created
data (for example Areas) that you want to preserve, you
*must* first upgrade to Daguerre 2.0, run the migrations
included in that version, and *then* upgrade to Daguerre

This migration path would look as follows::

$ cd path/to/my/project
$ pip install django-daguerre==2.0.0
$ python migrate daguerre
$ pip install -U django-daguerre
$ python migrate daguerre 0001 --fake
$ python migrate daguerre

If you *don't* have any manual data to preserve, and if it
would not adversely affect your site, you can also use the
following migration path::

$ cd path/to/my/project
$ python migrate daguerre zero # Or manually delete the daguerre tables
$ pip install -U django-daguerre
$ python migrate daguerre
$ python daguerre clean


You can install the latest version of Daguerre using ``pip``::

$ pip install django-daguerre

You can clone the repository yourself at

.. highlight:: python


Ensure that ``'daguerre'`` is in your project's ``INSTALLED_APPS``::


Add the following or similar anywhere in your URLconf::

urlpatterns = patterns('',
url(r'^daguerre/', include('daguerre.urls')),


We recommend running `tox`_ from the repository's root directory,
but you can also run ``test_project/ test daguerre``.

.. _tox:  
File Type Py Version Uploaded on Size
django-daguerre-2.1.2.tar.gz (md5) Source 2014-09-04 566KB
  • Downloads (All Versions):
  • 27 downloads in the last day
  • 250 downloads in the last week
  • 1115 downloads in the last month