Serve self-contained distribution builds of Swagger UI and Redoc with Django


Keywords
django, drf, openapi3, redoc, swagger-ui
License
BSD-3-Clause
Install
pip install drf-spectacular-sidecar==2022.6.1

Documentation

drf-spectacular-sidecar

pypi-version pypi-dl

Serve self-contained distribution builds of Swagger UI and Redoc with Django either via runserver or collectstatic.

This Django app is an optional addition to drf-spectacular, but does not depend on it. It may also be used independently.

This is a self-updating and self-publishing repository that looks for updates on the 1st of every month. The distribution files are sourced from npm via jsdelivr, validated, packaged and uploaded to PyPI.

Installation

$ pip install drf-spectacular-sidecar

The package needs to be registered to allow Django to discover the static files.

INSTALLED_APPS = [
    # ALL YOUR APPS
    'drf_spectacular_sidecar',
]

Requirements

Django >= 2.2

Licenses

Provided by T. Franzel. Licensed under 3-Clause BSD.

This package includes distribution builds of