Skip to main content

Django application contains all jquery static files.

Project description

django-static-jquery-ui

Django application contains all jquery static files.

Install

pip install django-static-jquery-ui

Settings

INSTALLED_APPS = [
    ...
    'jquery_ui',
    ...
]

Usage

Example 1

Include jquery-ui resources in template file.

{% load static %}

<link rel="stylesheet" href="{% static "jquery-ui/jquery-ui.min.css" %}" />
<script src="{% static "jquery-ui/external/jquery/jquery.js" %}"></script>
<script src="{% static "jquery-ui/jquery-ui.min.js" %}"></script>

Example 2

Use "ui-lightness" theme and enable i18n for datepicker.

{% load static %}

<link rel="stylesheet" href="{% static "jquery-ui/jquery-ui.min.css" %}" />
<link rel="stylesheet" href="{% static "jquery-ui/ui-lightness/theme.css" %}" />
<script src="{% static "jquery-ui/external/jquery/jquery.js" %}"></script>
<script src="{% static "jquery-ui/jquery-ui.min.js" %}"></script>
<script src="{% static "jquery-ui/i18n/datepicker-zh-Hans.js" %}"></script>

Example 3

Includ jquery-ui resources in model admin site.

class TestModelAdmin(admin.ModelAdmin):
    class Media:
        css = {
            "all": [
                "jquery-ui/jquery-ui.min.css",
                "jquery-ui/ui-lightness/theme.css",
            ]
        }
        js = [
            "jquery-ui/external/jquery/jquery.min.js",
            "jquery-ui/jquery-ui.min.js",
            "jquery-ui/i18n/datepicker-zh-Hans.js",
        ]

Note:

  • You can use site's default jquery.js instead of jquery.js shipped in jquery-ui.

About Release Versions

  • The first three version number matches with jQuery UI's version number.
  • The fourth version number is own release number.

Release

1.12.1.0 2019/12/06

  • First release.
  • Include all files of jquery-ui 1.12.1 and offical themes, all files are download from https://jqueryui.com/download/all/.
  • Include i18n language files for datepicker widget which are download from the demo site.

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-ui-1.12.1.0.tar.gz (1.5 MB view details)

Uploaded Source

File details

Details for the file django-static-jquery-ui-1.12.1.0.tar.gz.

File metadata

  • Download URL: django-static-jquery-ui-1.12.1.0.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5

File hashes

Hashes for django-static-jquery-ui-1.12.1.0.tar.gz
Algorithm Hash digest
SHA256 deb464759e1a5c919cbe05b6821bf9138161f39e5afbf577a458b29cd3080c70
MD5 cb988f5f567959914e2de8dc223305fc
BLAKE2b-256 3ea08978cf47f7e7851ed1b9f8244c853358903e8dcf8ffd7ee60f5602e8495d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page