# django-static-jquery-ui
Django application contains all jquery static files.
## Install
```shell
pip install django-static-jquery-ui
```
## Settings
INSTALLED_APPS = [
...
'django_static_jquery_ui',
...
]
## Usage
### Example 1
Include jquery-ui resources in template file.
```html
{% 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.
```html
{% 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.
```python
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "django-static-jquery-ui",
"maintainer": "Zhou Li",
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "django-static-jquery-ui",
"author": "Zhou Li",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/87/51/045015a87bf97d24ce9a1f34e664f75a8a2ea01c04ee965c632ca9843aef/django-static-jquery-ui-1.13.3.1.tar.gz",
"platform": null,
"description": "# django-static-jquery-ui\n\n\nDjango application contains all jquery static files.\n\n\n## Install\n\n```shell\npip install django-static-jquery-ui\n```\n\n## Settings\n\n INSTALLED_APPS = [\n ...\n 'django_static_jquery_ui',\n ...\n ]\n\n## Usage\n\n### Example 1\n\nInclude jquery-ui resources in template file.\n\n```html\n{% load static %}\n\n<link rel=\"stylesheet\" href=\"{% static \"jquery-ui/jquery-ui.min.css\" %}\" />\n<script src=\"{% static \"jquery-ui/external/jquery/jquery.js\" %}\"></script>\n<script src=\"{% static \"jquery-ui/jquery-ui.min.js\" %}\"></script>\n```\n\n### Example 2\n\nUse \"ui-lightness\" theme and enable i18n for datepicker.\n\n```html\n{% load static %}\n\n<link rel=\"stylesheet\" href=\"{% static \"jquery-ui/jquery-ui.min.css\" %}\" />\n<link rel=\"stylesheet\" href=\"{% static \"jquery-ui/ui-lightness/theme.css\" %}\" />\n<script src=\"{% static \"jquery-ui/external/jquery/jquery.js\" %}\"></script>\n<script src=\"{% static \"jquery-ui/jquery-ui.min.js\" %}\"></script>\n<script src=\"{% static \"jquery-ui/i18n/datepicker-zh-Hans.js\" %}\"></script>\n```\n\n### Example 3\n\nInclud jquery-ui resources in model admin site.\n\n```python\nclass TestModelAdmin(admin.ModelAdmin):\n class Media:\n css = {\n \"all\": [\n \"jquery-ui/jquery-ui.min.css\",\n \"jquery-ui/ui-lightness/theme.css\",\n ]\n }\n js = [\n \"jquery-ui/external/jquery/jquery.min.js\",\n \"jquery-ui/jquery-ui.min.js\",\n \"jquery-ui/i18n/datepicker-zh-Hans.js\",\n ]\n```\n\n\n*Note:*\n\n- You can use site's default jquery.js instead of jquery.js shipped in jquery-ui.\n\n\n## About Release Versions\n\n- The first three version number matches with jQuery UI's version number.\n- The fourth version number is own release number.\n\n## Release\n\n### 1.13.3.1\n\n- Upgrade jquery-ui to v1.13.3.\n\n### 1.13.2.1\n\n- Upgrade jquery-ui to v1.13.2.\n\n### 1.12.1.1\n\n- 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.\n\n### 1.12.1.0\n\n- First release.\n- Include all files of jquery-ui 1.12.1 and offical themes, all files are download from https://jqueryui.com/download/all/.\n- Include i18n language files for datepicker widget which are download from the demo site.\n\n\n",
"bugtrack_url": null,
"license": "Private",
"summary": "Django application contains all jquery static files.",
"version": "1.13.3.1",
"project_urls": null,
"split_keywords": [
"django-static-jquery-ui"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "92108e4409fe2faa8afa66937f91a8ecf671e180e6437e9198f328d6044aaa4c",
"md5": "098534e9dfcae1f91a1694390f200b7b",
"sha256": "ab2f474619e03d15d5016ec83cc6ed2672411c464cf4e9e3bf046ba002f5cba7"
},
"downloads": -1,
"filename": "django_static_jquery_ui-1.13.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "098534e9dfcae1f91a1694390f200b7b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 1924566,
"upload_time": "2024-05-12T13:22:55",
"upload_time_iso_8601": "2024-05-12T13:22:55.787536Z",
"url": "https://files.pythonhosted.org/packages/92/10/8e4409fe2faa8afa66937f91a8ecf671e180e6437e9198f328d6044aaa4c/django_static_jquery_ui-1.13.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8751045015a87bf97d24ce9a1f34e664f75a8a2ea01c04ee965c632ca9843aef",
"md5": "aa7895e8673233194ff728a2afc2b4a7",
"sha256": "e2bd1b66f5ee604cfb4f2788398c8274c3307c547eb19e7325f9e5626f040a95"
},
"downloads": -1,
"filename": "django-static-jquery-ui-1.13.3.1.tar.gz",
"has_sig": false,
"md5_digest": "aa7895e8673233194ff728a2afc2b4a7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 1506385,
"upload_time": "2024-05-12T13:22:58",
"upload_time_iso_8601": "2024-05-12T13:22:58.540869Z",
"url": "https://files.pythonhosted.org/packages/87/51/045015a87bf97d24ce9a1f34e664f75a8a2ea01c04ee965c632ca9843aef/django-static-jquery-ui-1.13.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-12 13:22:58",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "django-static-jquery-ui"
}