skip to navigation
skip to content

Not Logged In

django-daguerre 1.0.1

On-the-fly image manipulation for Django.

Latest Version: 2.1.4

README
======

**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 width=200 height=400 %}"/>

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


:code: http://github.com/littleweaver/django-daguerre
:docs: http://readthedocs.org/docs/django-daguerre/
:build status: |build-image|

.. |build-image| image:: https://secure.travis-ci.org/littleweaver/django-daguerre.png?branch=master
:target: http://travis-ci.org/littleweaver/django-daguerre/branches

Requirements
------------

* Python 2.6+
* PIL 1.1.7 (Or `Pillow <http: pypi.python.org="" pypi="" pillow="">`_)
* Django < 1.7

Installation
------------

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

pip install django-daguerre

You can clone the repository yourself at https://github.com/littleweaver/django-daguerre

.. highlight:: python

Setup
-----

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

INSTALLED_APPS = (
'daguerre',
...
)

Add the following or similar anywhere in your URLconf::

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

Testing
-------

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

.. _tox: http://tox.readthedocs.org/en/latest/  
File Type Py Version Uploaded on Size
django-daguerre-1.0.1.tar.gz (md5) Source 2014-03-04 558KB
  • Downloads (All Versions):
  • 10 downloads in the last day
  • 104 downloads in the last week
  • 708 downloads in the last month