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.2
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.2.tar.gz | 4.5 kB | Details |
Release files / django-versioned-static-url-0.2.tar.gz
| Download URL | django-versioned-static-url-0.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2850802a476c45765a0e51d1fddeaed0caf4aef51c058487b4771dcb7c857fcb
|
|
BLAKE2b-256 checksum How to use checksums |
80129750a5039468938046c2b2c15a7546d1e99fa3f7cc01c16565379ae78fc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |