Перейти к содержимому

How To Use Messages With Flask - Flask Fridays #6

John Elder

0:00 / 0:00

How To Use Messages With Flask - Flask Fridays #6

39 629 просмотров · 5 л. назад
John Elder
261 тыс. подписчиков
39 629 просмотров · 5 л. назад
In this video I'll show you how to use messages on your website with Flask and Python. Messages allow you to pass information to your website in little flash nuggets. So for instance if someone fills out a webform, and you want to flash a little message at the top of the screen that tells them the submission was successful, messages are a great tool for that. In this video I'll show you how to set up and use messages. We'll also look at using Bootstrap to style the flash messages, and make them delete-able and fade-able. Timecodes 0:00​ - Introduction 1:04 - Import Flash To Our Project 1:33 - Create A Flash Message For Flask 3:00 - Add Flash Message To Webpage 4:18 - Style Flash Message With Bootstrap Alert 5:26 - Flash Message Alert Fade 5:52 - Change Flash Message Bootstrap Alert Color 8:37 - Add Flash Message To Index Page 10:00 - Conclusion