00:00:00 – Introduction
00:00:48 – Python
00:01:45 – hello.py
00:03:26 – name.py
00:07:06 – variables.py
00:10:10 – conditions.py
00:12:51 – sequences.py
00:18:48 – loops0.py
00:23:26 – loops1.py
00:23:42 – sets.py
00:24:58 – dictionaries.py
00:27:57 – functions.py
00:32:12 – modules.py
00:35:56 – classes.py
00:39:17 – HTTP
00:40:25 – Flask
00:46:56 – routes0
00:52:25 – templates
00:57:14 – variables0
01:04:17 – conditions
01:11:53 – loops
01:17:48 – inheritance
01:23:00 – forms
01:33:50 – notes
Original source
34 responses to “Flask – Lecture 2 – CS50's Web Programming with Python and JavaScript”
What text editor is he using?
Great lection, english for me is foreign languages, but I understand all, respect to lecture
I ask about lecture0 to copy the url and paste in black screen wherr is this black i have windows thanks ..?
The Flask app didn't run until I added two extra lines of code:
if _name_ == '__main__':
app.run(debug=True)
For those confused about submitting with GET, at 1:31:35 line 8 method was changed to "get"
1:19:49 jinja2.exceptions.TemplateNotFound: index.html
Could any one help me to fix this
Thanks an advance
This lecture is salvation to me. Thank you so much Brian and CS50.
What is the syntax to take the characters from a string and store it into a list?
Why to use endif at 01:07:09?
x = 25
if x > 0:
print("x is positive")
elif x > 20:
print("x is greater than 20")
elif x < 0:
print("x is negative")
else:
print("x is zero")
It didn't check the second condition. why……………..
At lecture 2 and I have learned so much! Can't wait for the last lecture!
David Malan #2… But your lectures are a bit more digestible, which is nice 🙂
Have been struggling to understand POST and GET … THEN Brian comes for the rescue !!!
My code does not do any thing when I run in Flask-session example. Is there any further steps after installing Flask-Session?
i wish i had a classroom like this
verry good explanations
(When Question is asked): Great Question! So the question is ……..
(When Question answered): Good Question….
😀 😀 😀 😀
Any published notes from this lecture? Brian is a great instructor!
this is addictive <3
for any one using sublime text and getting the below error:
IndentationError: unindent does not match any outer indentation level
try this:
Set Sublime Text to use tabs for indentation: View –> Indentation –> Convert Indentation to Tabs
slides pdf file on edx only has 5 pages . please fix.
PROBLEM (not serious):
I have to exit and run flask everytime i make an edit. but he just edits code saves and refreshes.
i am using windows , using spyder editor.
5:50 I did exact the same with no type miss but I can't run this on my Terminal using Atom. is it bug or do I have to install something to use input??
Can anybody here help me with how to add a delete button with input type number so that it can delete.
Aaaaammmmmmmeeeeeeezzzzzzziiiiiiiiinnnnnnggggggggg
flask jinja 2 ..too cmplex for me
🙁
I wish all lecturers could be this articulate. Takes complex concepts and explains them simply and succinctly.
been playing around with vuejs but this makes me love flask again
cool course, as is called atom themes syntax?
Thanks brian!
@1:44:00 When I tried closing my browser and reopen it, it didn't save my notes. I went further and inspected the cookie in Chrome settings, and I found that this cookie expires when the browser is closed. Did Brian change something with his Chrome that enabled to save the cookie? And coming to think about it, what are the situations where the notes are cleared other than restarting the server?
IT WAS REALLY HELPFUL AND BEST LECTURE ON WEB APPLICATIONS ! THANKS CS50.
I am fed up of "Hello, World" so much so that I read it as "Hello, fuckin' World". Pun intended.
Last thing: Lectures are way too awesome.
flask_session gave ModulaNotFound error because you have to first install(pip install Flask-Session) the package. Brian skipped that step in the tutorial.