Skip to content

AdminSite

BaseAdminSite

  • Admin site base class

Inherit base class

Fields

settings

  • Current admin site configuration settings Settings object.

  • Reference: Settings /Settings)

fastapi

Methods

__init__

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_app

Mount the current management site to a FastAPI instance.

def mount_app(self, fastapi: FastAPI, name: str = None) -> None

AdminSite

  • Admin Site
  • AdminSite registers several administrative classes by default with respect to the base site: HomeAdmin, DocsAdmin, ReDocsAdmin, FileAdmin

Inheritance of the base class