django-versioned-static-url-0.8
توضیحات
A 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.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-versioned-static-url-0.8 |
| نام | django-versioned-static-url |
| نسخه کتابخانه | 0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Canonical webteam |
| ایمیل نویسنده | webteam+pypi@canonical.com |
| آدرس صفحه اصلی | https://github.com/ubuntudesign/django-versioned-static-url |
| آدرس اینترنتی | https://pypi.org/project/django-versioned-static-url/ |
| مجوز | UNKNOWN |
Django versioned static
=======================
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
------------
.. code:: python
# settings.py
INSTALLED_APPS += ['django_versioned_static_url']
Usage
-----
The following template code:
.. code:: html
{% load versioned_static %}
<link rel="stylesheet" href="{% versioned_static 'css/global.css' %}" />
Outputs:
.. code:: html
<link rel="stylesheet" href="/static/css/global.css?v=feb0d0e" />
نحوه نصب
نصب پکیج whl django-versioned-static-url-0.8:
pip install django-versioned-static-url-0.8.whl
نصب پکیج tar.gz django-versioned-static-url-0.8:
pip install django-versioned-static-url-0.8.tar.gz