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.2.1 2023/09/12
- Upgrade jquery-ui to v1.13.2.
1.12.1.1 2020/03/17
- 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 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
Built Distribution
File details
Details for the file django-static-jquery-ui-1.13.2.1.tar.gz
.
File metadata
- Download URL: django-static-jquery-ui-1.13.2.1.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 055a9ebb8ba13583adaf739a088586e99a29258a3c61acc91afbe5b31caa6bc6 |
|
MD5 | 17022cc8387b3c35d3d62f16dbd9a80e |
|
BLAKE2b-256 | f91d6224cbe4136c0778fa8d72d1a9151f1b89df744a5b9e95fa5f09fb8ba4bc |
File details
Details for the file django_static_jquery_ui-1.13.2.1-py3-none-any.whl
.
File metadata
- Download URL: django_static_jquery_ui-1.13.2.1-py3-none-any.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b19ca0db152c67c31e0db9e04c77cd3856956f18460708dbabe9c4ff66f2f683 |
|
MD5 | fa368966ffc2640a7409be4bb36c9e38 |
|
BLAKE2b-256 | 89dd35061f4dcebbc6196813da365986a131bb0107f7b371743ef96220c06b52 |