jQuery packaged in an handy django app to speed up new applications and deployment.
Project description
JQuery 1.11.3
Requirements
Django 1.4 or later
Installation
$ pip install django-static-jquery==1.11.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 - v1.11.3 static_jquery/js/jquery.min.js - JQuery (min) - v1.11.3 static_jquery/js/jquery.min.map - JQuery (map) - v1.11.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-1.11.3.tar.gz
(184.5 kB
view hashes)
Close
Hashes for django-static-jquery-1.11.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61de1f69ecdac52040ca743f438f222a02e721a3082883ad5fab1e6e60fa3315 |
|
MD5 | 3322d9f2d5e6dbbfa0f9e1239ce3858a |
|
BLAKE2b-256 | 67be43f328ef51f4982eecdae9b8157fb33b412afcc3ddac6facb335c0508e59 |