
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
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
Add "gulp_rev" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'gulp_rev', ]
Load "rev" in your templates:
{% load 'rev' %}
Use in your templates like this:
{% static_rev 'css/main.css' %}
DJANGO_GULP_REV_PATH
Override default STATIC_ROOT/rev-manifest.json filepath
FAQs
A simple Django integration with gulp-rev
We found that django-gulp-rev demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.