django-jquery 1.9.1

jQuery packaged in an handy django app to speed up new applications and deployment.

Requirements

Django 1.3 or later

Installation

$ pip install django-jquery

Setup

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

INSTALLED_APPS = (
    # ...

    'django.contrib.staticfiles',
    'jquery',

    # ...
)

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

Usage

You can refer to jquery in your template with:

{{ STATIC_URL }}js/jquery.js

Admin template customization:

{% extends "admin/base_site.html" %}

{% block extrahead %}
    <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.js" />
{% endblock %}

Custom widget:

class MyWidget(forms.TextInput):
    class Media:
        js = ('js/jquery.js',)

    def render(self, name, value, attrs=None):
        html = super(MyWidget, self).render(name, value, attrs=attrs)
        # ...
        return html
MIT

Author

Massimiliano Ravelli

Pip

django-jquery==1.9.1

Classifiers

  • Topic :: Utilities
  • Programming Language :: Python
  • Operating System :: OS Independent
  • Natural Language :: English
  • License :: OSI Approved :: MIT License
  • Intended Audience :: Developers
  • Framework :: Django
  • Environment :: Web Environment
  • Development Status :: 5 - Production/Stable
File Type Python Version Uploaded On Downloads
django-jquery-1.9.1.tar.gz Source Feb. 23, 2013 14,259
Version Release Date
1.9.1 Feb. 23, 2013
1.9.0 Jan. 29, 2013
1.8.3 Jan. 8, 2013
1.8.2 Jan. 8, 2013
1.8.1 Sept. 18, 2012
1.8.0 Aug. 23, 2012
1.7.2 March 29, 2012
1.7.1 Dec. 5, 2011
1.7 Nov. 19, 2011
1.6.4 Nov. 19, 2011
1.5.2 Nov. 19, 2011
1.4 Nov. 17, 2011
Date Package Version Action
Nov. 4, 2014, 1:21 p.m. django-jquery 1.8.3 Release Created
Nov. 4, 2014, 1:21 p.m. django-jquery 1.8.2 Release Created
Nov. 4, 2014, 1:21 p.m. django-jquery 1.8.1 Release Created
Nov. 4, 2014, 1:21 p.m. django-jquery 1.8.0 Release Created
Nov. 4, 2014, 1:21 p.m. django-jquery 1.5.2 Release Created
Nov. 4, 2014, 1:21 p.m. django-jquery 1.9.0 Release Created
Nov. 4, 2014, 1:21 p.m. django-jquery 1.9.1 Release Created
Nov. 4, 2014, 1:21 p.m. django-jquery 1.6.4 Release Created
Nov. 4, 2014, 1:21 p.m. django-jquery 1.7.1 Release Created
Nov. 4, 2014, 1:21 p.m. django-jquery 1.7.2 Release Created
Nov. 4, 2014, 1:21 p.m. django-jquery 1.7 Release Created
Nov. 4, 2014, 1:21 p.m. django-jquery 1.4 Release Created
Nov. 4, 2014, 1:21 p.m. django-jquery Package Created