#100DaysOfWeb in Python Transcripts
Chapter: Days 57-60: Flask Login
Lecture: Your 4 day overview

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Let's just take a quick look
0:01 at the next four days.
0:04 It's a bit different to the other chapters
0:05 that you would've seen to date.
0:07 What I'm actually going to do
0:08 is break it into days one and two, and three and four.
0:12 And that's just because there are so many videos
0:14 in this chapter, I really want to respect your time
0:17 and don't want to overwhelm you.
0:19 So, for the first two days
0:21 just pop through videos one to nine.
0:24 That's going to be covering of the SQLAlchemy database
0:28 and creating the initial application.
0:31 There's a lot of data in there.
0:32 Follow along and just focus on understanding the concepts
0:36 and really cementing this.
0:38 Okay, so play with it, code it yourself
0:41 and just try and get it working, okay?
0:44 And once it is working, you should hopefully be ready
0:47 for days three and four.
0:49 Days three and four complete the rest of the videos.
0:51 That's videos ten to sixteen.
0:54 They will cover of adding users to the database
0:57 and then building the actual Flask-Login functionality
1:01 using the Flask-Login plugin.
1:04 Once you have done that, again, focus on getting it down
1:08 try and make sure you understand it
1:11 before you attempt anything extra.
1:13 What I've done is I've kept it very bare bones
1:15 as I've mentioned before.
1:17 And I just want you to get it right.
1:20 Once you get it right, if you actually happen to have
1:25 spare time, which is fantastic, just give some of these
1:28 extra things a try.
1:30 As I mentioned, we didn't cover password hashing in this
1:33 which is quite important.
1:35 But it does take extra time and I wanted you
1:38 to actually figure that our for yourself
1:40 'cause it's not too difficult, it's quite simple.
1:43 Wasn't really relevant to getting
1:46 the actual login system working.
1:49 It's just an additional thing, obviously necessary.
1:51 See if you can get that next.
1:54 Then, I'd like you to start stress-testing your application.
1:58 Look for bugs and exceptions that we haven't
2:01 that we aren't catching
2:03 things that haven't been accounted for.
2:05 Think of incorrect data types that may have been entered in.
2:08 So if someone enters in a symbol
2:11 what's going to happen if you enter in
2:13 a character in an integer field, that sort of thing, right?
2:16 So try and test for that.
2:18 Also test what happens if you have identical user names.
2:21 Is it a problem? Test it out and try it.
2:25 So try lots of different things
2:26 see if you can catch something that needs to be fixed.
2:32 Then, if you really feel like it, make the app beautiful
2:35 the usual stuff, get your CSS on
2:38 and really pretty up the web page.
2:40 And right now, it's just very basic HTML.
2:44 And finally, implement some other functionality
2:46 you can think of.
2:47 Get creative and just think about some of the cool things
2:50 you might be able to do with the data
2:52 that's in the database.
2:53 You have the username, right?
2:55 So, why not have the username appear
2:57 at the top of every page once they log in?
3:00 Try something like that.
3:02 Try doing something different with the logout page
3:05 and flashing and anything else you might come up with.
3:09 That should keep you busy for the four days of this chapter.
3:14 Let's get cracking.