Install
pip install django-assets-manager
Usage
Settings
INSTALLED_APPS = (
# ...
'django_assets_manager',
)
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'django_assets_manager.finders.CdnFinder',
)
ASSETS_MANAGER_FILES = {
"utils": {
"js": "static://js/utils.js",
},
"cooleffect": {
"js": ["static://js/cooleffect.js"],
"css": ["static://css/cooleffect.css"],
"depends": ["utils", "jquery"],
},
"jquery": {
"js": "//code.jquery.com/jquery-2.1.4.min.js",
"cache": {
"paths": {
"//code.jquery.com/jquery-2.1.4.min.js": "jquery-2.1.4.min.js",
}
},
},
}
ASSETS_MANAGER_SPRITES = (
{
'name': 'main',
'output': 'images/sprites.png',
'scss_output': 'css/_sprites.scss',
'extra_sizes': ((2, '@2x'),),
'width': 640,
'height': 640,
'images': (
{
'name': 'logo',
'src': 'img/logo.png',
},
{
'name': 'bar_bg',
'src': 'img/bar_bg.png',
'mode': 'repeat-x',
},
),
},
)
Template
{% load assets_manager %}
{% assets "cooleffect" %}
<!-- or -->
{% assets_css "cooleffect" %}
{% assets_js "cooleffect" %}
Metadata
Release files for django-assets-manager 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_assets_manager-1.0.0.tar.gz | 19.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_assets_manager-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.5 kB
Release files / django_assets_manager-1.0.0.tar.gz
| Download URL | django_assets_manager-1.0.0.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87ed987a2d3a1a8c7e72754937b725681b57492bae0d034c937e3341d0427b99
|
|
BLAKE2b-256 checksum How to use checksums |
ed40bfb7396d3f89ff89784567a55a7276cc120b55840c53bfeaa6b51b8fe49e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.10
|
Release files / django_assets_manager-1.0.0-py3-none-any.whl
| Download URL | django_assets_manager-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
992ac1a250a44da108f7cf98d3f2ac954409504f0aed346cf864767b61912e76
|
|
BLAKE2b-256 checksum How to use checksums |
15d20a57642351f55cc7cf27067a4ff7235588c97f17f9f21cf036067c49b3cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.10
|
Security for django-assets-manager 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.