Flask Web Development in Python - 3 - Variables in your HTML

Publié le: 24 septembre 2014
sur la chaîne: sentdex
59,499
272

Flask Playlist:    • Flask Web Development in Python - 1 -...  

In this Flask tutorial, we're going to be talking about how to pass logic from Python to HTML, incorporate templates, and variables. Logic actually ends up being more like having logic in our HTML. We can do things like having For loops and if statements in our Python.

Passing variables from our Flask Python files to HTML is fairly simple, and using Templates can save us a lot of time.

Something like for each element in a list, place in a table, is completely possible.

We also cover using try-except for error handling. It can be useful to have the exceptions logging the errors in a log file at the very least.

Sample code: http://pythonprogramming.net/flask-we...

http://seaofbtc.com
http://sentdex.com
http://hkinsley.com
  / sentdex  

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6


Sur cette page du site, vous pouvez voir la vidéo en ligne Flask Web Development in Python - 3 - Variables in your HTML durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur sentdex 24 septembre 2014, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 59,499 fois et il a aimé 272 téléspectateurs. Bon visionnage!