Static jQuery
Requirements
django 1.3 or later
Installation
$ pip install static-jquery $ pip install static-jquery==%(version)s
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:
{%% load jquery %%} {%% jquery_js %%} or {%% jquery_js %(version)s %%}