Include JavaScript 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
Close
Hashes for django-any-js-1.0.3.post0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1da88b44b861b0f54f6b8ea0eb4c7c4fa1a5772e9a4320532cd4e0871a4e23f7 |
|
MD5 | 904289ac625e3e8f08eda074d8ef295e |
|
BLAKE2b-256 | 70def1fef6ce288f304501de654ec8500df425f32f0ee5f4450d9a4f96a4bfaa |