Skip to content

Instantly share code, notes, and snippets.

View haraonline's full-sized avatar
🎯
Focusing

Hara haraonline

🎯
Focusing
  • Germany
View GitHub Profile
<!-- 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') }}">
/* 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;
# 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')
<!-- 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>
<!-- 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>
# 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__)
# USE WITH THE PYTHON FILE PROVIDED
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello Home</title>
</head>
<body>
# 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__)
# incremental source code for the lesson "numbers and floats"
# section 2: lecture 10
from flask import Flask, render_template, request
app = Flask(__name__)
# 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('/')