Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Django wrapper for RSZ.IO

Project Description

A Django wrapper for


Install via pip:

pip install django-rszio


  1. Add to INSTALLED_APPS in 'rszio',
  2. Add the include to urlpatterns in urlpatterns = [ url(r'^media/', include('rszio.urls')), ]
  3. Load the template tag into a template {% load rszio %}
  4. Use the image tag. {% image 'path/to/image.jpg' width=100 rotate=10 %} Visit the RSZ.IO Docs for all of the options. Convert parameters to kwargs.


Prevalidate if the image exists in the default file storage

Add to


The default is False

Cache Control headers

It is highly recommended that if you use this package your site should be sitting behind a CDN. Not sure what this is, check out

Add to

To set an expiration timeout use an integer in seconds. For example, below the image is set to cache for an hour.


This will output Cache-Control max-age=3600 in the response header.

The advanced option

Any string you pass that doesn’t convert to an int will be set in the header.


This will output Cache-Control no-cache in the response header.


  • KISS
  • The origional image must be accessable via a URL, so RSZ.IO can access it. I use django-storages with AWS S3 to serve my media.
  • This is tested and used in production with Django 1.10 and 1.11 on Python 3.5 and 3.6. But this should work on older versions of Django and Python 2. Open an issue or pull request if not the case.


The package is following the Major.Minor.BugFix philosophy. So breaking changes will increase the major number. New features will increase the minor number.

So it is safe to put this line in your requirements.txt

All new features, no breaking features


Just bugfixes

Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_rszio-1.1.0-py2.py3-none-any.whl (7.7 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel May 19, 2017
django-rszio-1.1.0.tar.gz (5.0 kB) Copy SHA256 Checksum SHA256 Source May 19, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting