Replies: 4 comments 1 reply
-
|
Hello, in my approach |
Beta Was this translation helpful? Give feedback.
-
|
In my example, report.html is a Jinja template that inherits the rest of the sqladmin JS code, and my page looks like a unified whole with the base interface of sqladmin. I can provide additional examples if necessary. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I just extended it in my custom page report.html This is all done inspired by the documentation, maybe a bit more boldly :) |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I’m using SQLAdmin (sqladmin==0.20.1) with FastAPI. I want to customize the default dashboard/index page shown at /admin/ (for example, to show business metrics or a custom welcome message instead of the usual SQLAdmin home page).
I read through the documentation and source code but couldn’t find a documented way to override or customize the main dashboard page. I tried subclassing BaseView and setting an is_index = True property (which I found in the source, not the docs), but this didn’t have any effect.
Is there an officially supported way to override the dashboard/index page in SQLAdmin?
If not, is there a workaround or recommended approach?
Are there plans to document or support this in future releases?
Minimal example of what I tried:
But when I visit /admin/, I still see the default SQLAdmin dashboard.
How can I replace or customize this page?
I have find this https://github.com/aminalaee/sqladmin/discussions/921 but i don't want to completely replace the layout. I would like to keep the sidebar
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions