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.2

  • Doc update.

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_static_jquery_ui-1.13.3.2-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

Details for the file django_static_jquery_ui-1.13.3.2.tar.gz.

File metadata

File hashes

Hashes for django_static_jquery_ui-1.13.3.2.tar.gz
Algorithm Hash digest
SHA256 a15aaa58807abf808b0ff9f499bccf23edc3a8e3f0d197d9881b149b9c39e3fc
MD5 1800a6ddad7f128614a840be87a7b466
BLAKE2b-256 1fb347e5fa5166872e7fb90b28d4ea50f30a3018b4fd2c242d56fa350c8dc901

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_static_jquery_ui-1.13.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8cf8efb892533b34970fceb35921470c1fbabaad4c7bb27128bf23d6b428f7e3
MD5 3d6aa326500d5cc851761a70cae908d2
BLAKE2b-256 22e9b2ca4adfbbebc59ed189aadc1a71d6081dd1b659a183a50038d65c29e8f3

See more details on using hashes here.

Supported by

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