Skip to main content

On-the-fly image manipulation for Django.

Project description

Django Daguerre
===============

**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**.

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

* Python 2.5+
* PIL 1.1.7 (Or [Pillow](http://pypi.python.org/pypi/Pillow))

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

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

pip install django-daguerre

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')),
...
)

Usage
-----

The easiest way to use Daguerre is through the `{% adjust %}` template tag:

{% load daguerre %}
<img src="{% adjust my_model.image.name width=128 height=256 %}" />

For more on using Daguerre, [read the documentation](http://django-daguerre.readthedocs.org/).

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

django-daguerre-0.1.tar.gz (24.3 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