Python and Flask Templates Part Two - Loops and Inheritance

preview_player
Показать описание
This video continues from the introduction video and covers loops and inheritance using templates.

Рекомендации по теме
Комментарии
Автор

Haha, 1:45 “Would you like to purchase SublimeText?” *Cancel* relatable

Chadathin
Автор

Thank you so much!!! I've been trying to make a social media website based off of Flask and I needed it to load all the txt files and return them to the feed.html. Thanks again!!! Worked for me

thestartupguy
Автор

Thanks very much for these videos, they're really helping me understand Flask!

christianmomdjian
Автор

Great videos. I first watched some other video I won't name but it has got good reviews so I thought to give it a try. But Damn!! he was so confusing and he does not explain anything, I had to read the jinja template doc for understanding everything when I stumbled upon this video. Great Work I must say..!! Thanks a lot!!

harishrajora
Автор

what's the difference in terms of exchangeability and pros/cons, if there are any
between the extends and includes syntax?

vaneakatok
Автор

Okay, but what if I wanted to use the template for something else, like a multipage form? You only showed us how to hard code relationships for one page. How is this done then? I want to re-use html code for obvious reasons, but this does not help. You left out important information. For example what happens then I have 2 routes, but I want to keep the layout around my content and just change the content with different html files.

unlink
Автор

Hi, i'm struggling with my project maybe you could give me a hint... I try to get API data from a website with an HTML form this part is done, where i'm struggling is to return the information on my Flask app. How can i print my information with a for loop?

I don't know if you understand my question but your help is appreciated.

husos
Автор

hey, these are great videos, thank you very much for all!!
I have a question, is it possible to have a decrementing list with jinja ? Is it possible to list item.text on your video in reverse order ? Thanks again!

alivarinlioglu
Автор

Do you have a video about the @app.route('/<condition>') to use conditions there based on the user's actions on the html side?

one_lettersandnumbers
Автор

In 1:35, you wrote `item.text`. Is this syntax what jinja offers? I suppose in python, it should be `item['text']` .

shibasispatel
welcome to shbcf.ru