CS50 2017 – Lecture 9 – Python, continued

Python

Video is ready, Click Here to View ×


00:00:00 – Lecture 8 Recap
00:03:13 – Intro to Web Programming
00:10:22 – serve.py
00:19:12 – Flask
00:24:39 – Routes
00:27:24 – Templates
00:30:58 – froshims0
00:44:29 – Stelios
00:46:00 – froshims1
00:55:55 – froshims2
01:02:45 – froshims3
01:10:45 – Similarities

16 thoughts on “CS50 2017 – Lecture 9 – Python, continued

  1. from flask import Flask,request,render_template
    app=Flask(__name__)

    @app.route("/")
    def index():
    return render_template("index.html")

    @app.route("/register",methods=["POST"])
    def register():
    if not request.form.get("name") or not request.form.get("surname"):
    return render_template("failure.html")
    return render_template("success.html") .What am I doing wrong it wont give me success even if I fill in name and surname it catches failure

  2. David is such a great great professor! He makes everything so engaging and easy to follow. I love the flow and the way he explains any concept. I love CS50 and Harvard, thank you so much for publishing the content. I really wish I could be there in the lecture hall. And hope that other CS course videos can be accessed here as well!

Leave a Reply

Your email address will not be published. Required fields are marked *