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.3
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.3.tar.gz | 4.6 kB | Details |
Release files / django-versioned-static-url-0.3.tar.gz
| Download URL | django-versioned-static-url-0.3.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
221fd3979c176477645708705495720a562c273c60a79ad37736ba6ac6181f3a
|
|
BLAKE2b-256 checksum How to use checksums |
51cf69c901c4222fe5a41356bbd29ab308432891b51643b7907ee4abf60c2608
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |