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
INSTALLED_APPS = [
...
"django_static_swagger_ui",
...
]
Use static files
swagger-ui.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.
Release files for django-static-swagger-ui 5.17.14.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_static_swagger_ui-5.17.14.1.tar.gz | 3.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_static_swagger_ui-5.17.14.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 MB
Release files / django_static_swagger_ui-5.17.14.1.tar.gz
| Download URL | django_static_swagger_ui-5.17.14.1.tar.gz |
|---|---|
| Size | 3.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71fb4e22e243467f7f161f3ba2732aaf512dfdf78f4fca9c9a3f196385e09fc7
|
|
BLAKE2b-256 checksum How to use checksums |
366390b6bf6e036d9aea4472e2554eb0f9d76c51937ae1b07d91024ea5394d1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.12
|
Release files / django_static_swagger_ui-5.17.14.1-py3-none-any.whl
| Download URL | django_static_swagger_ui-5.17.14.1-py3-none-any.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0ce5b8ecad5801f8be4217014e9c27443f2fa4e74f4afb03b5bfffbe5cd2475
|
|
BLAKE2b-256 checksum How to use checksums |
1889569033b62f3a38edb8a5ff81087e40cf886dcd93ef8194b088da8e177b0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.12
|