Skip to main content

Django wrapper for intercooler.js - AJAX With Attributes: There is no need to be complex.

Project description

Requirements

Django 1.3 or later

Installation

$ pip install django-intercoolerjs

Setup

Just add 'django.contrib.staticfiles' and 'intercoolerjs' to INSTALLED_APPS in your settings.py:

INSTALLED_APPS = (
    # ...

    'django.contrib.staticfiles',
    'intercoolerjs',

    # ...
)

Refer to Django static files documentation to configure and deploy static files.

Usage

You use intercooler.js in your Django templates like this:

{% load static %}

<!-- only if you also need jQuery -->
<script src="{% static "intercoolerjs/js/jquery.js" %}"></script>
<!-- this is the minified intercooler.js -->
<script src="{% static "intercoolerjs/js/intercooler.min.js" %}"></script>

Project details


Download files

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

Source Distribution

django-intercoolerjs-1.0.3.0.tar.gz (41.1 kB view hashes)

Uploaded Source

Built Distribution

django_intercoolerjs-1.0.3.0-py2.py3-none-any.whl (42.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page