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 = [
    ...
    'django_static_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.13.3.1

  • Upgrade jquery-ui to v1.13.3.

1.13.2.1

  • Upgrade jquery-ui to v1.13.2.

1.12.1.1

  • Rename application name from jquery_ui to django_static_jquery_ui. Note: Rename is NOT backward compatible, please change the app name in INSTALLED_APPS inside settings.py.

1.12.1.0

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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for django-static-jquery-ui-1.13.3.1.tar.gz
Algorithm Hash digest
SHA256 e2bd1b66f5ee604cfb4f2788398c8274c3307c547eb19e7325f9e5626f040a95
MD5 aa7895e8673233194ff728a2afc2b4a7
BLAKE2b-256 8751045015a87bf97d24ce9a1f34e664f75a8a2ea01c04ee965c632ca9843aef

See more details on using hashes here.

File details

Details for the file django_static_jquery_ui-1.13.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_static_jquery_ui-1.13.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab2f474619e03d15d5016ec83cc6ed2672411c464cf4e9e3bf046ba002f5cba7
MD5 098534e9dfcae1f91a1694390f200b7b
BLAKE2b-256 92108e4409fe2faa8afa66937f91a8ecf671e180e6437e9198f328d6044aaa4c

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