# django-static-swagger-ui
Django application contain swagger-ui static files
## Install
pip install django-static-swagger-ui
## License
- All resource files of static/swagger-ui are dist folder unzip from swagger-ui-x.xx.x.zip which download from https://github.com/swagger-api/swagger-ui/releases without any changes.
- All resource files of static/swagger-ui obey swagger-ui License, see details at https://github.com/swagger-api/swagger-ui/blob/master/LICENSE.
- We don't guarantee the latest swagger-ui version.
## Settings
**pro/settings.py**
```python
INSTALLED_APPS = [
...
"django_static_swagger_ui",
...
]
```
## Use static files
**swagger-ui.html**
```html
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>{% load staticfiles %}
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="{% static "swagger-ui/swagger-ui.css" %}" />
<link rel="stylesheet" type="text/css" href="{% static "swagger-ui/index.css" %}" />
<link rel="icon" type="image/png" href="{% static "swagger-ui/favicon-32x32.png" %}" sizes="32x32" />
<link rel="icon" type="image/png" href="{% static "swagger-ui/favicon-16x16.png" %}" sizes="16x16" />
</head>
<body>
<div id="swagger-ui"></div>
<script src="{% static "swagger-ui/swagger-ui-bundle.js" %}" charset="UTF-8"> </script>
<script src="{% static "swagger-ui/swagger-ui-standalone-preset.js" %}" charset="UTF-8"> </script>
<script src="{% static "swagger-ui/swagger-initializer.js" %}" charset="UTF-8"> </script>
</body>
</html>
```
## About releases
- The first three number is the same with swagger-ui project's version.
- The fourth number is our release number, it's optional.
## Releases
### v4.14.0.2
- First release.
- Using swagger-ui v4.14.0.
### v4.19.0.0
- Upgrade to swagger-ui v4.19.0.
### v4.19.1.0
- Upgrade to swagger-ui v4.19.1.
### v5.4.2.0
- Upgrade to swagger-ui v5.4.2.
### v5.6.2.0
- Upgrade to swagger-ui v5.6.2.
## v5.17.14.0
- Upgrade to swagger-ui v5.17.14.
## v5.17.14.1
- Doc update.
Raw data
{
"_id": null,
"home_page": null,
"name": "django-static-swagger-ui",
"maintainer": "rRR0VrFP",
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "django admin extentions, django static swagger-ui",
"author": "rRR0VrFP",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/36/63/90b6bf6e036d9aea4472e2554eb0f9d76c51937ae1b07d91024ea5394d1b/django_static_swagger_ui-5.17.14.1.tar.gz",
"platform": null,
"description": "# django-static-swagger-ui\n\nDjango application contain swagger-ui static files\n\n## Install\n\n pip install django-static-swagger-ui\n\n## License\n\n- All resource files of static/swagger-ui are dist folder unzip from swagger-ui-x.xx.x.zip which download from https://github.com/swagger-api/swagger-ui/releases without any changes.\n- All resource files of static/swagger-ui obey swagger-ui License, see details at https://github.com/swagger-api/swagger-ui/blob/master/LICENSE.\n- We don't guarantee the latest swagger-ui version.\n\n## Settings\n\n**pro/settings.py**\n\n```python\n INSTALLED_APPS = [\n ...\n \"django_static_swagger_ui\",\n ...\n ]\n```\n\n## Use static files\n\n**swagger-ui.html**\n\n```html\n\n<!-- HTML for static distribution bundle build -->\n<!DOCTYPE html>{% load staticfiles %}\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <title>Swagger UI</title>\n <link rel=\"stylesheet\" type=\"text/css\" href=\"{% static \"swagger-ui/swagger-ui.css\" %}\" />\n <link rel=\"stylesheet\" type=\"text/css\" href=\"{% static \"swagger-ui/index.css\" %}\" />\n <link rel=\"icon\" type=\"image/png\" href=\"{% static \"swagger-ui/favicon-32x32.png\" %}\" sizes=\"32x32\" />\n <link rel=\"icon\" type=\"image/png\" href=\"{% static \"swagger-ui/favicon-16x16.png\" %}\" sizes=\"16x16\" />\n </head>\n\n <body>\n <div id=\"swagger-ui\"></div>\n <script src=\"{% static \"swagger-ui/swagger-ui-bundle.js\" %}\" charset=\"UTF-8\"> </script>\n <script src=\"{% static \"swagger-ui/swagger-ui-standalone-preset.js\" %}\" charset=\"UTF-8\"> </script>\n <script src=\"{% static \"swagger-ui/swagger-initializer.js\" %}\" charset=\"UTF-8\"> </script>\n </body>\n</html>\n\n```\n\n## About releases\n\n- The first three number is the same with swagger-ui project's version.\n- The fourth number is our release number, it's optional.\n\n## Releases\n\n\n### v4.14.0.2\n\n- First release.\n- Using swagger-ui v4.14.0.\n\n### v4.19.0.0\n\n- Upgrade to swagger-ui v4.19.0.\n\n### v4.19.1.0\n\n- Upgrade to swagger-ui v4.19.1.\n\n### v5.4.2.0\n\n- Upgrade to swagger-ui v5.4.2.\n\n### v5.6.2.0\n\n- Upgrade to swagger-ui v5.6.2.\n\n## v5.17.14.0\n\n- Upgrade to swagger-ui v5.17.14.\n\n## v5.17.14.1\n\n- Doc update.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Django application contain swagger-ui static files",
"version": "5.17.14.1",
"project_urls": null,
"split_keywords": [
"django admin extentions",
" django static swagger-ui"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "1889569033b62f3a38edb8a5ff81087e40cf886dcd93ef8194b088da8e177b0e",
"md5": "7905bbc89826daa734a22dec2c344772",
"sha256": "d0ce5b8ecad5801f8be4217014e9c27443f2fa4e74f4afb03b5bfffbe5cd2475"
},
"downloads": -1,
"filename": "django_static_swagger_ui-5.17.14.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7905bbc89826daa734a22dec2c344772",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3140192,
"upload_time": "2025-10-21T13:41:58",
"upload_time_iso_8601": "2025-10-21T13:41:58.436900Z",
"url": "https://files.pythonhosted.org/packages/18/89/569033b62f3a38edb8a5ff81087e40cf886dcd93ef8194b088da8e177b0e/django_static_swagger_ui-5.17.14.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "366390b6bf6e036d9aea4472e2554eb0f9d76c51937ae1b07d91024ea5394d1b",
"md5": "4a16106fcb36ea8ae39be263d126349c",
"sha256": "71fb4e22e243467f7f161f3ba2732aaf512dfdf78f4fca9c9a3f196385e09fc7"
},
"downloads": -1,
"filename": "django_static_swagger_ui-5.17.14.1.tar.gz",
"has_sig": false,
"md5_digest": "4a16106fcb36ea8ae39be263d126349c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3109950,
"upload_time": "2025-10-21T13:42:00",
"upload_time_iso_8601": "2025-10-21T13:42:00.226426Z",
"url": "https://files.pythonhosted.org/packages/36/63/90b6bf6e036d9aea4472e2554eb0f9d76c51937ae1b07d91024ea5394d1b/django_static_swagger_ui-5.17.14.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-21 13:42:00",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "django-static-swagger-ui"
}