Skip to main content

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.

{% 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 %}
code:

http://github.com/melinath/django-daguerre

docs:

http://readthedocs.org/docs/django-daguerre/

build status:

build-image

Requirements

  • Python 3.5+

  • Pillow

  • Django 1.11 – 3.0

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

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

Run the migration command to create the database models:

python manage.py migrate daguerre

Testing

You can run the tests with test_project/manage.py test daguerre.

Metadata

Release files for django-daguerre 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-daguerre 3.0.0
File Size Uploaded Provenance
django-daguerre-3.0.0.tar.gz 584.8 kB Without provenance Details

Release files / django-daguerre-3.0.0.tar.gz

Download URL django-daguerre-3.0.0.tar.gz
Size 584.8 kB
Tags Source
SHA-256 checksum
How to use checksums
41f44701f8a5753cbbc73661380683fdb95201c95811e813a3bc2b093fe81019
BLAKE2b-256 checksum
How to use checksums
baf23fe04fb27644f0deb1079bc9bb65d01ff9e4990317c02c95be2d9076c7ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Security for django-daguerre 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page