Include JavaScript/CSS libraries with readable template tags
Project description
Description
Django-Any-JS helps you at including any combination of JavaScript/CSS URLs in your site, with readable settings and template tags.
Usage
In your settings:
INSTALLED_APPS = [
...,
"django_any_js",
...,
]
ANY_JS = {
"DataTables": {
"js_url": "/javascript/jquery-datatables/dataTables.bootstrap4.min.js",
"css_url": "/javascript/jquery-datatables/css/dataTables.bootstrap4.min.css",
}
}
In your template:
{% load any_js %}
{% include_js "DataTables" %}
{% include_css "DataTables" %}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_any_js-1.3.tar.gz
(6.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_any_js-1.3.tar.gz.
File metadata
- Download URL: django_any_js-1.3.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.12 Linux/6.19.8+deb14-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40c67159ee6dbd05cc6306a356dd59e1a7f8eadea2b686fd8d0d453c3768bb9f
|
|
| MD5 |
da6bc38104024d820e62a017733e9394
|
|
| BLAKE2b-256 |
9a0a9acfc44e72515f9672763f9a4027817ada51fb4db4a5e9b3788ac9b9b00f
|
File details
Details for the file django_any_js-1.3-py3-none-any.whl.
File metadata
- Download URL: django_any_js-1.3-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.12 Linux/6.19.8+deb14-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90eb08ab75b97cc92529c7f68ac5ae97aef70775c08b8f9f81249517fd242606
|
|
| MD5 |
12e733e88ed947b35953e345a6369d23
|
|
| BLAKE2b-256 |
f07e86b524b5e4aa3193a6ea68eebb1a35c4ebc58ed78adf2dcc913946820037
|