jQuery packaged in an handy django app to speed up new applications and deployment.
Project description
JQuery 2.1.3
Requirements
Django 1.4 or later
Installation
$ pip install django-static-jquery==2.1.3
Setup
Just add 'django.contrib.staticfiles' and 'django_static_jquery' to INSTALLED_APPS in your settings.py:
INSTALLED_APPS = ( # ... 'django.contrib.staticfiles', 'django_static_jquery', # ... )
Refer to Django static files documentation to configure and deploy static files.
Usage
You can refer to jquery in your template with:
{% load staticfiles %} {% static 'static_jquery/js/jquery.js' %}
Admin template customization:
{% load staticfiles %} {% extends "admin/base_site.html" %} {% block extrahead %} <script type="text/javascript" src="{% static 'static_jquery/js/jquery.js' %}" /> {% endblock %}
Static files:
static_jquery/js/jquery.js - JQuery - v2.1.3 static_jquery/js/jquery.min.js - JQuery (min) - v2.1.3 static_jquery/js/jquery.min.map - JQuery (map) - v2.1.3 static_jquery/js/jquery-migrate.js - jQuery Migrate - v1.2.1 static_jquery/js/jquery-migrate.min.js - jQuery Migrate (min) - v1.2.1
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-static-jquery-2.1.3.tar.gz
(164.0 kB
view hashes)
Close
Hashes for django-static-jquery-2.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd6e9c437149553ab0cb5bc33f6cacf15cd06bbfced27d283c514c72f992b687 |
|
MD5 | ac9fa45012671da19fef16843017937a |
|
BLAKE2b-256 | 56bdfeadc2aec33b58e4c25618c3bfeb6cc24ba3026deff54e5cab24deb822f6 |