django-static-swagger-ui-4.14.0.2
توضیحات
Django application contain swagger-ui static files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-static-swagger-ui-4.14.0.2 |
| نام | django-static-swagger-ui |
| نسخه کتابخانه | 4.14.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | zencore |
| ایمیل نویسنده | dobetter@zencore.cn |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/django-static-swagger-ui/ |
| مجوز | MIT |
# 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**
```python
<!-- 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.
نیازمندی
| مقدار | نام |
|---|---|
| - | django |
نحوه نصب
نصب پکیج whl django-static-swagger-ui-4.14.0.2:
pip install django-static-swagger-ui-4.14.0.2.whl
نصب پکیج tar.gz django-static-swagger-ui-4.14.0.2:
pip install django-static-swagger-ui-4.14.0.2.tar.gz