This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML FOR SECTION 3: LECTURE 14 --> | |
<!-- ADDED CSS USING UR_FOR METHOD TO THIS HTML FILE IN LINE 10 --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>movie durations</title> | |
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* THESE STYLES ARE FOR THE TABLE IN SECTION 3: LECTURE 14 */ | |
table { | |
border-collapse: collapse; | |
width: 35%; | |
} | |
td, th { | |
border: 1px solid #dddddd; | |
text-align: left; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# code for the lesson "jinja templating part 2" | |
# section 3: lecture 13 | |
# USE THIS CODE IN CONJUNCTION WITH THE HTML PROVIDED | |
from flask import Flask, render_template, request | |
app = Flask(__name__) | |
@app.route('/index') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML FOR JINJA2 - PART 2 --> | |
<!-- USE WIHT THE PYTHON FILE PROVIDED --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>movie durations</title> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML CODE FOR JINJA2: PART 1 --> | |
<!-- USE WITH THE PYTHON FILE PROVIDED --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Watchable</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# code for the lesson "jinja templating part 1" | |
# section 3: lecture 12 | |
# USE THIS CODE IN CONJUNCTION WITH THE HTML PROVIDED | |
from flask import Flask, render_template, request | |
app = Flask(__name__) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USE WITH THE PYTHON FILE PROVIDED | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello Home</title> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# incremental source code for the lesson "rendering html templates" | |
# section 2: lecture 11 | |
# TO USE THIS CODE, YOU NEED THE TEMPLATES FOLDER WITH THE HTML FILE. SEE THE OTHER LINK PROVIDED FOR THE HTML PAGE | |
from flask import Flask, render_template, request | |
app = Flask(__name__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# incremental source code for the lesson "numbers and floats" | |
# section 2: lecture 10 | |
from flask import Flask, render_template, request | |
app = Flask(__name__) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# code for the lesson "understanding query strings" | |
# section 2: lecture 9 | |
from flask import Flask, render_template, request | |
app = Flask(__name__) | |
@app.route('/index') | |
@app.route('/') |