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?a23bd10
Installation
# settings.py
INSTALLED_APPS += ['django.versioned_static']
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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-versioned-static-url-0.1.tar.gz | 4.5 kB | Details |
Release files / django-versioned-static-url-0.1.tar.gz
| Download URL | django-versioned-static-url-0.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6b8276f358e1dccf61b53fc692e516d322bc2060fdddf1109ddd35efb43cf3b
|
|
BLAKE2b-256 checksum How to use checksums |
b86cdd7339f14d409d85ad9709aa632d0248666683b1817bb548421ee0ddc44d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |