Skip to main content

# 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.

Metadata

Release files for django-static-md5url 0.1

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-static-md5url 0.1
File Size Uploaded
django-static-md5url-0.1.tar.gz 2.9 kB Details

Release files / django-static-md5url-0.1.tar.gz

Download URL django-static-md5url-0.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6a77c895eec9e3b989477bab938638fc2c584d83ccfcebadc9b10d5eb5683b52
BLAKE2b-256 checksum
How to use checksums
f3997834de47d63dcd48b4219d8c9ec952b19bc803ba10c63b4a99d94b3a1add
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

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