Admin Configurations
Multiple options are available to customize your admin interface
admin = Admin(
title="SQLModel Admin",
base_url="/admin",
route_name="admin",
statics_dir="statics/admin",
templates_dir="templates/admin",
logo_url="`https`://preview.tabler.io/static/logo-white.svg",
login_logo_url="`https`://preview.tabler.io/static/logo.svg",
index_view=CustomView(label="Home", icon="fa fa-home", path="/home", template_path="home.html"),
auth_provider=MyAuthProvider(login_path="/sign-in", logout_path="/sign-out"),
middlewares=[],
debug=False,
i18n_config = I18nConfig(default_locale="en")
)
Parameters
title: Admin title.base_url: Base URL for Admin interface.route_name: Mounted Admin namelogo_url: URL of logo to be displayed instead of title.login_logo_url: If set, it will be used for login interface instead of logo_url.statics_dir: Templates dir for static files customisationtemplates_dir: Templates dir for customisationindex_view: CustomView to use for index page.auth_provider: Authentication Providermiddlewares: Starlette middlewaresi18n_config: i18n config for your admin interface