Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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


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.0.3.post0
Filename, size File type Python version Upload date Hashes
Filename, size django-any-js-1.0.3.post0.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page