skip to navigation
skip to content

django-jquery 1.9.1

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

Latest Version: 3.1.0


Django 1.3 or later


$ pip install django-jquery


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

    # ...


    # ...

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


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
File Type Py Version Uploaded on Size
django-jquery-1.9.1.tar.gz (md5) Source 2013-02-23 33KB