JQuery 2.1.4
Requirements
Django 1.4 or later
Installation
$ pip install django-static-jquery==2.1.4
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.4 static_jquery/js/jquery.min.js - JQuery (min) - v2.1.4 static_jquery/js/jquery.min.map - JQuery (map) - v2.1.4 static_jquery/js/jquery-migrate.js - jQuery Migrate - v1.2.1 static_jquery/js/jquery-migrate.min.js - jQuery Migrate (min) - v1.2.1
Release files for django-static-jquery 2.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-static-jquery-2.1.4.tar.gz | 163.8 kB | Details |
Release files / django-static-jquery-2.1.4.tar.gz
| Download URL | django-static-jquery-2.1.4.tar.gz |
|---|---|
| Size | 163.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34c690d6296df0acfe759be05ad58096664fe22a5c6ff1229106522e22c84325
|
|
BLAKE2b-256 checksum How to use checksums |
45615ca1505b967e987f66acd1a36fe819abfc4f41be4cc54c0e0fb650f923d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |