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

Channel:
Subscribers:
1,410,000
Published on ● Video Link: https://www.youtube.com/watch?v=4vvHkziL3oQ



Category:
Tutorial
Duration: 13:22
59,265 views
274


Flask Playlist: http://youtu.be/mr90d7fp3SE?list=PLQVvvaa0QuDcOS4l8RCWh0olq_je0OKaP

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-web-development-tutorial/

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

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6







Tags:
Flask (Software)
Python (Programming Language)
Web Development (Interest)
website
create
develope
dev
tutorial
how-to
django
web2py
app
webapp
web app
framework
paradigm
mvc
model view controller
variable
HTML (Programming Language)
template
templates