- Admin site base class
Inherit base class¶
Current admin site configuration settings
Reference: Settings /Settings)
- The FastAPI object that is currently mounted on the management site.
- Reference: https://fastapi.tiangolo.com/
Initialize the management site.
settings: Basic configuration of the management site
fastapi: manages the site FastAPI application
engine: manages the site's default database engine.
def __init__(self, settings: Settings, fastapi: FastAPI = None, engine: AsyncEngine = None)
Mount the current management site to a FastAPI instance.
def mount_app(self, fastapi: FastAPI, name: str = None) -> None
- Admin Site
- AdminSite registers several administrative classes by default with respect to the base site: HomeAdmin, DocsAdmin, ReDocsAdmin, FileAdmin