Flask Tutorial #10 - Blueprints & Using Multiple Python Files

Flask Tutorial #10 - Blueprints & Using Multiple Python Files

Tech With Tim

5 лет назад

160,679 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@johngiles6930
@johngiles6930 - 01.09.2020 18:21

Wheres the "link in the description"?

Ответить
@eventeklay4618
@eventeklay4618 - 14.10.2020 10:11

How many thing do you know you know how to make web app u know how to make GUI app u know to make mobile app bro

Ответить
@marcelobarros5073
@marcelobarros5073 - 19.10.2020 16:58

How my blueprint access objects in the main app?
How my blueprint access the database?
How my blueprint access the main app's config?
Your tutorial only works for static webpages, nothing more.
You did not explaing anything about "context" or using "current_app". If you don't want to talk about it, at least leave a warning for people to know they have to look for more information.
I hope that when people try to convert their apps through your tutorial, they find out quickly it is incomplete. So, they won't expend too much time thinking their code is broken.

Ответить
@blackcat-xu3ph
@blackcat-xu3ph - 16.11.2020 02:10

Wow I really liked this video man, very simple but still very good ! thank you

Ответить
@constantinewesterink3845
@constantinewesterink3845 - 09.12.2020 20:29

will i be able to get data from my db created in another file?

Ответить
@aqibfayyaz1619
@aqibfayyaz1619 - 15.12.2020 16:13

Thank you this is what i was looking for.

Ответить
@Julian-tf8nj
@Julian-tf8nj - 07.01.2021 08:51

superb tutorial - very clear and concise - thank you!

Ответить
@anujkondhalkar9776
@anujkondhalkar9776 - 15.01.2021 07:31

Respected sir, 
I have one question that is , Why blueprint instance have same name as a first argument in it. e.g. = Blueprint('second', __name__).
why "second" repeated two times. are those two different. thank you.

Ответить
- 17.01.2021 01:07

Thanks, nice content :) Hi from Turkiye!

Ответить
@justinlee3453
@justinlee3453 - 17.01.2021 12:37

Thanks Tim, these series really gave me a kickstart for my project !!

Ответить
@jeffjackson2574
@jeffjackson2574 - 14.02.2021 07:58

Thanks for explaining it so clearly! All the documentation I was reading kept talking about app factories; this is a much clearer way to explain the basics.

Ответить
@veronicakanczes571
@veronicakanczes571 - 05.03.2021 05:14

Thank you for demonstrating!

Ответить
@en_coded
@en_coded - 21.03.2021 05:24

cant we just import without blueprint ?

Ответить
@davidfuchs86
@davidfuchs86 - 30.04.2021 10:59

Hi Tim,
thanks for this great tutorial. I very much like the way you introduced us to flask.
One thing that may be helpful to others: For me, it did not work instantly for the blueprint to access the static folders, i.e. I had an issue both showing the image and loading the css file. Finally, I found I had to change the variable 'static' in the url_for argument to 'second.static' for everything to work...

Ответить
@chilin2314
@chilin2314 - 30.04.2021 16:46

good tutorial video, thank you!

Ответить
@m12652
@m12652 - 09.05.2021 11:02

For anyone who’s migrating templates for a complex app structure... flask adds the package specific templates to the search path as opposed to just making the package look internally. This means if you have multiple templates with the same name, e.g. home.html, it will render the first one it finds...

Ответить
@Imufur
@Imufur - 03.06.2021 18:14

very useful, i made a small app but the main file was getting huge, this is like the html files and js files where you import the js file instead of putting all the js code inside the html right?

Ответить
@eduardogil1775
@eduardogil1775 - 09.06.2021 19:37

Excellent explanation, Thanks for sharing 👍🏽

Ответить
@MrBebopbob
@MrBebopbob - 23.06.2021 22:01

Very nice beginners tutorial. Thanks

Ответить
@mahatechtalks9496
@mahatechtalks9496 - 24.06.2021 21:08

Hi Tim
Thanks for the video and it was very useful

Ответить
@TheDr660
@TheDr660 - 08.07.2021 21:06

This was immensely helpful, read through the docs and was confused. You are awesome.

Ответить
@FilthySnob
@FilthySnob - 28.09.2021 19:59

i dont get why when i remove the _init_ from my blueprint folder, things continued to work as expected?

Ответить
@MrJorjantas
@MrJorjantas - 29.09.2021 03:12

¿How to pass mysql cursor as a blueprint argument? This is needed for database operations inside the routes functions

Ответить
@SoBasicCat
@SoBasicCat - 29.09.2021 23:07

Hey Tim, i wanted to point out that when you use CSS as for blueprint you have to change href="{{url_for('static',filename='style.css')}} to href="{{url_for('second.static',filename='style.css')}} when referencing the CSS code. Thank you very much for your videos, i have learned a lot😀 from them

Ответить
@Aliabbashassan3402
@Aliabbashassan3402 - 02.10.2021 22:45

How can I read a qr code for login flask app.. Please help

Ответить
@Aliabbashassan3402
@Aliabbashassan3402 - 02.10.2021 22:46

I already reading qr code using flask and check it if it is accommodate thr png picture. But how can go to another html page after that

Ответить
@prog_free_time421
@prog_free_time421 - 10.10.2021 08:23

Thank you so much, Tim, for all your tutorials, they are amazing!

Ответить
@TecnoTutosMarc
@TecnoTutosMarc - 27.11.2021 00:41

You are the best because I was looking for what is init and why, how uses it 💪💪

Ответить
@DeenQuery
@DeenQuery - 16.12.2021 06:18

well explained; thanks man 👍

Ответить
@igorcrissaff1583
@igorcrissaff1583 - 04.03.2022 16:05

how can use mysqldb in these blueprints?? i can create the mysql connection on the main file, but i can't do it with the blueprints

Ответить
@abdomohamed6419
@abdomohamed6419 - 13.04.2022 22:58

worest flask tutorial ever .

Ответить
@mbonuchinedu2420
@mbonuchinedu2420 - 16.04.2022 03:49

God Bless you tim. 🔥🔥🔥🔥

Ответить
@siamakshams1923
@siamakshams1923 - 13.05.2022 17:50

Yet another fantastic tutorial. Thank you.

Ответить
@anurajms
@anurajms - 05.06.2022 17:26

thank you

Ответить
@hekote2112
@hekote2112 - 11.08.2022 12:37

This is a really great tutorial. help me a lot.

Ответить
@harshabiyani1523
@harshabiyani1523 - 24.08.2022 13:27

Thanks for the session. Can we add Blueprints in flask classify? if yes, how can we add the same?

Ответить
@_m_m9214
@_m_m9214 - 11.09.2022 21:06

thank you my black brother\

Ответить
@jayantkeer3416
@jayantkeer3416 - 26.09.2022 18:18

Nice explanation

Ответить
@abhaykumar0215
@abhaykumar0215 - 10.01.2023 20:10

Could you please do the same like creating multiple modules for flask_sqlalchemy....not able to find much helpful video

Ответить
@sau002
@sau002 - 12.04.2023 21:07

Excellent

Ответить
@alvinnlus
@alvinnlus - 11.05.2023 05:23

Better spelling NOT included. Spell Tripple again!

Ответить
@bhargavkhetmalis3886
@bhargavkhetmalis3886 - 10.07.2023 12:17

Hi! Can I use flask for big projects? (practice)

Ответить
@KittichaiKerdsongsang
@KittichaiKerdsongsang - 28.08.2023 12:10

After I moved the static and templates folder to the admin folder, the images and CSS files were not working. Could someone please explain?

Ответить
@andrewmathenge3400
@andrewmathenge3400 - 06.09.2023 23:02

Best explained tutorial on Blueprints that I've seen. Very concise, and covers so much in 13 minutes. Super.

Ответить
@anassfaiz5098
@anassfaiz5098 - 29.10.2023 22:41

why the css file is not working in the home.html i made a image and a text with css code but i doesn't work and i don't know why is not working

Ответить
@trsree
@trsree - 08.03.2025 00:51

Hi Tim thanks for making these videos, they are really helpful. i wanted to see if you can show us how to fetch the application level config variables that can be accessed across all blueprints?

Ответить