Skip to main content

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

Project description

django-intercooler.js is just a Django wrapper for intercooler.js.

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>

Since version 1.1.0 of intercooler.js it is also possible to use zepto as an alternative to jQuery. zepto is not yet bundled with django-intercoolerjs.

Version numbers

We are keeping the intercooler.js version number, so that intercooler.js releases can easily be spotted in django-intercoolerjs. But, since we also need a version number, an other dot number is added.

If intercooler.js version 1.0.3. is the current release, django-intercoolerjs will have the version number 1.0.3.0. This last number will be incremented with every release of django-intercoolerjs.

Demo

A demo project can be found in the 'demo' folder along with a README.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_intercoolerjs-1.2.2.0-py2.py3-none-any.whl (56.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django_intercoolerjs-1.2.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: django_intercoolerjs-1.2.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 56.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15rc1

File hashes

Hashes for django_intercoolerjs-1.2.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aa1ad3a26db1b2f0a0862a645147d9729cc42348d96d9d6b2307ef7df7082dde
MD5 a0b1380f8b8b57eefbb5c23bfb2622d8
BLAKE2b-256 ebc8d2a138c10ec33f53d654c09bcad18fe3487cf8129087391d5610f04ba3a9

See more details on using hashes here.

Provenance

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