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!

Versioning django static files in production. Add md5 suffix to url

Project Description

# django-static-md5url

This is extension for versioning static files in Django projects, if `PRODUCTION = True`.

For example this css file: ` <link rel="stylesheet" href="{% md5url 'base/css/styles.min.css' %}"> ` will be replace with: ` <link rel="stylesheet" href="/static/base/css/styles.min.css?v=a6e2ba64"> `

where a6e2ba64 is first 8 characters of md5 file sum.

# Installation

Install using pip ` pip install django-static-md5url `

Add ` django_static_md5url ` to INSTALLED_APPS.

# Configuration

Load `{% load md5url %}` template tag in your Django template.

Release History

This version
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
(2.9 kB) Copy SHA256 Hash SHA256
Source None Aug 8, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate