5
0
Fork
You've already forked django-any-js
0
Django-Any-JS helps you at including any combination of JavaScript/CSS URLs in your site, with readable settings and template tags.
  • Python 84.6%
  • HTML 15.4%
Find a file
2026年04月28日 10:45:02 +02:00
django_any_js Fix tag code. 2019年05月29日 22:26:41 +02:00
.editorconfig Initial commit. 2019年05月29日 20:06:24 +02:00
.gitignore Initial commit. 2019年05月29日 20:06:24 +02:00
CHANGELOG.rst Allow Django 6.0 and bump version 2026年03月29日 11:49:15 +02:00
LICENCE Relicence under Apache 2.0 2021年02月08日 14:51:28 +01:00
pyproject.toml Fix URL 2026年04月28日 10:45:02 +02:00
README.rst Reformat README.rst 2021年04月17日 15:23:08 +02:00
renovate.json Add renovate.json 2021年10月13日 13:30:56 +00:00

Django Any-JS

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" %}