Skip to main content

Include JavaScript/CSS libraries with readable template tags

Project description


Django-Any-JS helps you at including any combination of JavaScript/CSS URLs in your site, with readable settings and template tags.


In your settings:

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-any-js, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django_any_js-1.1.1-py3-none-any.whl (7.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-any-js-1.1.1.tar.gz (6.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page