Intro to Flask-Admin
ฝัง
- เผยแพร่เมื่อ 30 ก.ย. 2024
- Flask-Admin adds a dashboard that gives your users the ability to edit the data in the database.
WORK WITH ME👇🏼
✅ Implement features and fix bugs in your app: Live, one-on-one screenshare
prettyprinted....
💻 Code written in video
prettyprinted....
These videos are so good that they make me ditch Django and come back to Flask again.
Thanks for watching!
Same here.. Flask all the way
how to send the data to admin dashboard view
I think i like django more for this reason it already really has all this built in.
Yeah the Django one is definitely more complete.
no matter what i do it shows no module named flask admin. what should i do?please help
Excellent tutorials, very clear and you show how to start from scratch, so for Python newbies (full-stack js refugees) it's great watching them. I would love to see, for example, Htmx + Flask-Admin (which I don't see anywhere) and as an added bonus with Tailwind (never mind :) ). Htmx + Flask-Admin would be incredible. Thanks for your efforts!
Do you have to use the SQLAlchemy in oder to make use of Flask-Admin?
No there other options available like MongoEngine and Peewee.
i just use regular sqlite3
tks, safe my life
This video helped me a lot, thank you very much! But i find that if I remove "user" in form_columns, the application will throw a exception called 'Cannot find reverse relation for model ', why is this?
how to use postgresql,and such videos... man i've been learning a lot this channel!
Hi Anthony! Does Flask Admin works with Mongo databases as well?
Hey, Anthony. You're using Windows with WSL as your environment, correct? How'd you get the blue WSL box to display on the bottom left corner like that? Any other special extensions you recommend for VS Code?
I remember showing the relations a few years ago without having to define another class.
Great video!
Really useful. Do you plan to make another video and go into more detail?
thank you for sharing your knowledge!!!
Can u do a video saying how to secure this admin page via jwt
Thank you for the great video. However, I am finding trouble when the User is in the models.py file and the rest of the code are in a admin.py at the top of the directory with the error of circular imports. My admin.py has the following: from flask_admin import Admin
from flask_admin.contrib.sqla import ModelView
from app import app, db
from app import models
#Create the Flask-Admin instance
admin = Admin(app, name='Admin Panel', template_mode='bootstrap3')
#Create a ModelView for the Users model and add it to Flask-Admin
admin.add_view(ModelView(models.User, db.session)) What, am I doing wrong?
stuff like form_columns and column_list are very confusing to me. does the Admin package use this variable if it is exactly named like this?
I am not a big fan... and you should really explain why it is named like this, and why it does what it does
The idea behind Flask-Admin is you use the class to set everything up, so yes the names have to be exact. There's not much to explain beyond that though because that's how they chose to set up their extension. They could have easily used other approaches for customizing the admin pages.
this extension does not support Bootstrap5, only bootstrap4
You have the ability to switch out all the templates, but yeah that might be a bit annoying if you wanted an out the box solution.
very good demo, thank you
Thanks for watching!
At last Anthony!
Thanks for watching!
Thanks so much
You're welcome!
great video
Thanks for watching!
Awesome as always 🥳
Thanks!
Thanks
Thanks for watching!
Hey Anthony please continue with this flask-admin series I'm working on this flask extension in my project and I'm not able to customize please make video for customize flask admin as well.
I'll see what I can do.