django-static-swagger-ui


Namedjango-static-swagger-ui JSON
Version 5.17.14.0 PyPI version JSON
download
home_pageNone
SummaryDjango application contain swagger-ui static files
upload_time2024-08-11 15:59:43
maintainerWang XiaoHan
docs_urlNone
authorWang XiaoHan
requires_pythonNone
licenseMIT
keywords django admin extentions django static swagger-ui
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.



            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "django-static-swagger-ui",
    "maintainer": "Wang XiaoHan",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": "wangxiaohan@zencore.cn",
    "keywords": "django admin extentions, django static swagger-ui",
    "author": "Wang XiaoHan",
    "author_email": "wangxiaohan@zencore.cn",
    "download_url": "https://files.pythonhosted.org/packages/fa/6a/0fbede12af887a2b2cd0567d14bf36b8f7c9800873c1feeb56604824b930/django-static-swagger-ui-5.17.14.0.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\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Django application contain swagger-ui static files",
    "version": "5.17.14.0",
    "project_urls": null,
    "split_keywords": [
        "django admin extentions",
        " django static swagger-ui"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "51c8b88e011220fbcb66fe79f7881e7d5a50fd355a1c43fd9f44f8fc4c79eb61",
                "md5": "0598a0417f33bfc2479f4e0f95e9c6d9",
                "sha256": "c816a82953678858567065b43e0ff82a4cd40a60d6666a30287dad2c46bb0f6c"
            },
            "downloads": -1,
            "filename": "django_static_swagger_ui-5.17.14.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0598a0417f33bfc2479f4e0f95e9c6d9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3140151,
            "upload_time": "2024-08-11T15:59:41",
            "upload_time_iso_8601": "2024-08-11T15:59:41.289646Z",
            "url": "https://files.pythonhosted.org/packages/51/c8/b88e011220fbcb66fe79f7881e7d5a50fd355a1c43fd9f44f8fc4c79eb61/django_static_swagger_ui-5.17.14.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fa6a0fbede12af887a2b2cd0567d14bf36b8f7c9800873c1feeb56604824b930",
                "md5": "34b3675ce74d5ccb46ae6a3f04bc38b5",
                "sha256": "422bdf2525ba525aa65dbcfa2b65c7429fbe71c8583b3de2934d8b6bd8596a69"
            },
            "downloads": -1,
            "filename": "django-static-swagger-ui-5.17.14.0.tar.gz",
            "has_sig": false,
            "md5_digest": "34b3675ce74d5ccb46ae6a3f04bc38b5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3109974,
            "upload_time": "2024-08-11T15:59:43",
            "upload_time_iso_8601": "2024-08-11T15:59:43.714771Z",
            "url": "https://files.pythonhosted.org/packages/fa/6a/0fbede12af887a2b2cd0567d14bf36b8f7c9800873c1feeb56604824b930/django-static-swagger-ui-5.17.14.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-11 15:59:43",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "django-static-swagger-ui"
}
        
Elapsed time: 0.29866s