Skip to main content
===============
django-gulp-rev
===============

Django gulp-rev is a simple Django app that integrates `gulp-rev
<https://www.npmjs.com/package/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:

/devstatic/css/main.css?39daksd

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:

/static/css/main-39daksd.css

Quick start
-----------

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

INSTALLED_APPS = [
...
'gulp_rev',
]

2. Load "rev" in your templates:

{% load 'rev' %}

3. Use in your templates like this:

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


Configuration
-------------

``DJANGO_GULP_REV_PATH``
~~~~~~~~~~~~~~~~~~~~~~~~

Override default STATIC_ROOT/rev-manifest.json filepath

Release files for django-gulp-rev 0.2

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-gulp-rev 0.2
File Size Uploaded
django-gulp-rev-0.2.tar.gz 3.6 kB Details

Release files / django-gulp-rev-0.2.tar.gz

Download URL django-gulp-rev-0.2.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7beeeace74289cb0ed62d000de1779034982b7f3a9983794ba46b2871d65332c
BLAKE2b-256 checksum
How to use checksums
c093dc4635b49cb65b419746fed7d3f759908b114aba6ddf0066d20b74176d89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

0.1

1 release file

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