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


Talk Python's Mastodon Michael Kennedy's Mastodon