Replies: 1 comment 3 replies
-
|
Hi, I think the docs are not updated yet. Can you follow this? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm having trouble to get some plotly Charts on index.html.
It's a FastAPI application and I created a template in
app/templates/index.htmlmain.pywill initialize sqladmin via:admin_setup.py:When I call the admin URL "localhost/admin" it throws an error:
My
index.htmllooks like this:I'm probably missing something. I thought, I can overwrite just one template file and he's using everything else, like "sqladmin/layout.html" from sqladmin source. Sadly the docs (https://aminalaee.dev/sqladmin/working_with_templates/) doesn't help that much in my case.
Did I do something wrong or do I need to copy all templates from sqladmin source to my template folder if I start overwriting one default template?
Or are there any other examples / best practices around templating or getting something like charts on the front page of sqladmin?
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions