Тёмный

How to Integrate Flask-Admin and Flask-Login 

Pretty Printed
Подписаться 96 тыс.
Просмотров 70 тыс.
50% 1

In this video I talk about how you can integrate Flask-Login into Flask-Admin so you can protect your admin routes. This can also be done using Flask-User or Flask-Security since they're both based off Flask-Login.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching
Join my free course on the basics of Flask-SQLAlchemy: prettyprinted.com/flasksql
Twitter: / pretty_printed
Github: github.com/prettyprinted

Опубликовано:

 

2 апр 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 56   
@prettyprinted
@prettyprinted 4 года назад
Join my free course on the basics of Flask-SQLAlchemy: prettyprinted.com/flasksql
@TravisVOX
@TravisVOX 5 лет назад
15 months later and this is still just as useful... thank you!
@prettyprinted
@prettyprinted 5 лет назад
Glad it's still useful for you! Thanks for watching.
@tatvakeswani8483
@tatvakeswani8483 8 месяцев назад
I'm here 5 years later learning from this
@felixnyamongo
@felixnyamongo 4 месяца назад
5- 5 years
@parthshady5981
@parthshady5981 6 лет назад
Best Flask Tutorials on RU-vid
@ikukuvision4548
@ikukuvision4548 6 лет назад
100%
@prettyprinted
@prettyprinted 6 лет назад
Thanks!
@bckzilla
@bckzilla 6 лет назад
You are an awesome tutor and it's a pleasure to watch your videos. Thanks!
@prettyprinted
@prettyprinted 6 лет назад
You're welcome! Thanks for watching.
@shambhaviaggarwal9977
@shambhaviaggarwal9977 3 года назад
Best flask tutorials in 2020!
@jackpaperhands
@jackpaperhands 3 года назад
So awesome, so underrated.
@kylerbriskey372
@kylerbriskey372 3 года назад
Awesome video! Even almost 3 years later
@karlduckett
@karlduckett 3 года назад
Awesome. This is great (as always).
@hellositu
@hellositu 4 года назад
Very useful. Thanks
@ikukuvision4548
@ikukuvision4548 6 лет назад
Great Video. Right on the money. I think Flask - Security will work best here because of the ability to assign roles, as you stated. But it's all very clear. Build the site as normal and add accessibility to the /admin route to specific users only. Thanks
@prettyprinted
@prettyprinted 6 лет назад
You're welcome. I'm glad it helped.
@devonly9298
@devonly9298 2 года назад
thank you!!! it is very helpful!!!
@geovaneoliveiradecarvalho2365
@geovaneoliveiradecarvalho2365 2 года назад
Thanks for your video it helped me a lot
@constantinewesterink3845
@constantinewesterink3845 3 года назад
amazing video 👍
@ParthParikh23
@ParthParikh23 4 года назад
really good tutorial...wasted 2 days before going through this video...please start posting this link on stackoverflow questoins as well.
@Quicksilver87878787
@Quicksilver87878787 4 года назад
Hi Anthony. Great video, as are all of your Flask tutorials. I'm battling to get Blueprint and Admin to work together. I've tried this a while back and it was a known difficulty for these two extensions to work in the same environment. Have you come across this, and if so, how to solve?
@iburahim786
@iburahim786 4 года назад
Hi Antony, Thanks for your tutorial. Your videos are really awesome. Just one question. I have my flask app and i just wants to use the table and image,file view in my application. How to inherit to my application. This is should not change my actual application. Else how i will get the code for each view. Please share if any videos or example available
@anouartouil3645
@anouartouil3645 4 года назад
first of all thanks for the good educational videos man.. and how can i change that so that it can work with Flask security together
@MiaElliottPhotos
@MiaElliottPhotos 4 года назад
Hi. Thanks for this intro. However, I am the only user of my app. How can I integrate login form with Admin home page?
@psychobuddha5379
@psychobuddha5379 3 года назад
What would be the best way to handle different levels of authentication? For example, if you want that your default user can just see the content, but the admin can also edit, add and delete?
@user-rd6ow9po9r
@user-rd6ow9po9r Год назад
awesome
@wilhelmwilhelm1251
@wilhelmwilhelm1251 6 лет назад
Hey, can you make a tutorial where you create some backgroundtasks using celery (with redis) and generate some status updates with socketio (and eventlet)? I am a nooby at Flask/Webdevelopment and also Python but your explanation are so straightforward that even I am able to understand them. Thank you for all your effort!
@prettyprinted
@prettyprinted 6 лет назад
That's a good idea. I'll add it to my list of videos to make.
@wilhelmwilhelm1251
@wilhelmwilhelm1251 6 лет назад
Cool. Thanks! :)
@OnceNgBayan
@OnceNgBayan 2 года назад
Hi! Is this possible to do when my database (MariaDB) containing the user accounts information are remotely accessed? Not sure how the db.session part translates to my use-case.
@asishmishra1605
@asishmishra1605 4 года назад
hii anthony.in my application i have 2 admin section.one can only edit the user list and the other one can create ,edit and delete the user list.How to implement this one
@user-oh7zi2rx8f
@user-oh7zi2rx8f 7 месяцев назад
Thanks for this video. Just wondering. How would I implement this in React?
@exodustesfaye2149
@exodustesfaye2149 4 года назад
dud you are awesome
@prettyprinted
@prettyprinted 4 года назад
Thanks for watching!
@peterosoo5668
@peterosoo5668 5 лет назад
hi i would love to know how i can add an admin in flask to an existing project? so that am able to login as admin
@prettyprinted
@prettyprinted 5 лет назад
You'll have to add something to your schema that supports an admin level user. Once you do that, you just have to integrate similar code to the one in the video in your project.
@almamanley
@almamanley 3 года назад
I don't get where to put what lines if splitting it into modules without getting circular imports
@digiital
@digiital 6 лет назад
Like to see something with ROLES to limit what pages a user can view based on their ROLES.. like ADMIN/USER/CLERK....
@chisroar
@chisroar 5 лет назад
This is exactly what I am searching for. Any luck? Although I believe he may have touched on that at the very end of the video.
@ikukuvision4548
@ikukuvision4548 5 лет назад
Hi mate. Have you sorted this? I can help if not
@chisroar
@chisroar 5 лет назад
I found using flask-admin along side flask-security allowed me to decorate routes with @roles_accepted and this solved the issue I had been having.
@quadeershaikh2884
@quadeershaikh2884 5 лет назад
Hey, I need help with this. I have created a flask app and I need to give role based access to the users and the admin.
@myshifuislittlebiatch2000
@myshifuislittlebiatch2000 2 года назад
i am using MYSQL does it still work the same ?
@dsdgaming2242
@dsdgaming2242 5 лет назад
Hello Pretty Printed. Can I ask how to solve this problem I encounter, it says "sqlalchemy.exc.OperationalError". What kind of error is this? Is it a relationship problem or what?
@prettyprinted
@prettyprinted 5 лет назад
It can be any error related to SQLAlchemy. Make sure your database tables have been created and that you have no errors in your classes.
@plusk343
@plusk343 3 года назад
I feel like these recordings are automated.... Like, how does he type so smoothly????
@majidheydari1003
@majidheydari1003 5 лет назад
How to add flask-admin to a Blueprint
@peichenzhong2965
@peichenzhong2965 5 лет назад
hello ,how to intergrate flask-User and flask-admin
@prettyprinted
@prettyprinted 5 лет назад
It's very similar to this video. Flask-User is built on top of Flask-Login.
@peichenzhong2965
@peichenzhong2965 5 лет назад
@@prettyprinted yes , i know ,can you create a demo to introduce ? i don `t understand how to use ,thanks!
@prettyprinted
@prettyprinted 5 лет назад
@@peichenzhong2965 I'll see what I can do.
@dydufjfbfnddhbxnddj83
@dydufjfbfnddhbxnddj83 2 года назад
Source code?
@marcinajman6256
@marcinajman6256 Год назад
if you face : AttributeError: 'Flask' object has no attribute 'login_manager' Try this: login = LoginManager(app)
Далее
Intro to Flask-Admin
15:00
Просмотров 14 тыс.
ПОЮ ЛЕТНИЕ ПЕСНИ🌞
3:16:55
Просмотров 1,7 млн
Intro to Flask-Security
22:49
Просмотров 39 тыс.
User Authentication - Flask Tutorial Series #8
28:14
Using Flask-Mail to Send Email Confirmation Links
18:09
Intro to Flask-Login
16:54
Просмотров 77 тыс.
Basic Admin Page - Flask Fridays #34
8:24
Просмотров 21 тыс.
How to Use Flask-SQLAlchemy With Flask Blueprints
20:10