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!

A simple Django integration with gulp-rev

Project Description


Django gulp-rev is a simple Django app that integrates `gulp-rev
<>`_ with your Django website.

django-gulp-rev looks for your rev-manifest.json file generated by gulp-rev and
parses it to provide dynamic versioned paths to your static assets. In default,
the rev-manifest.json file should be in your STATIC_ROOT directory.

When DEBUG == True, django-gulp-rev doesn't use the rev-manifest.json file, instead
it appends random characters at the end of the file, like this:


When DEBUG is set to False, everything works as expected, and django-gulp-rev uses
your rev-manifest.json file to return a versioned static url:


Quick start

1. Add "gulp_rev" to your INSTALLED_APPS setting like this:


2. Load "rev" in your templates:

{% load 'rev' %}

3. Use in your templates like this:

{% static_rev 'css/main.css' %}



Override default STATIC_ROOT/rev-manifest.json filepath

Release History

This version
History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.6 kB) Copy SHA256 Hash SHA256
Source None Apr 18, 2016

Supported By

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 Google Google Cloud Servers DreamHost DreamHost Log Hosting