Skip to main content

A {% versioned_static %} template tag for generating a URL for a static file, with a version string which will be effectively unique based on the contents of the file.

Example

/static/css/global.css?v=a23bd10

Installation

# settings.py
INSTALLED_APPS += ['django_versioned_static_url']

Usage

# template file
{% load versioned_static %}
<link rel="stylesheet" href="{% versioned_static 'css/global.css' %}" />

Outputs

<link rel="stylesheet" href="/static/css/global.css?v=feb0d0e" />

Metadata

Release files for django-versioned-static-url 0.4

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-versioned-static-url 0.4
File Size Uploaded
django-versioned-static-url-0.4.tar.gz 4.7 kB Details

Release files / django-versioned-static-url-0.4.tar.gz

Download URL django-versioned-static-url-0.4.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6f9f2a200e186b32c100ef4e3e1083b47201c4df6b5d9fac0e2c3c18a70309d1
BLAKE2b-256 checksum
How to use checksums
08c5564fcf008865099a080b0159b1a6c30f8a824aa58cf69048371127b99445
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

This release

0.4 This release

1 release file

0.3

1 release file

0.2

1 release file

0.1.1

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