Adding a CMS to Your Flask Web App Transcripts
Chapter: Saving content to the DB
Lecture: Saving pages to the database
0:00 For a long time we've been using our fake database, which is transient. It keep stuff in memory, but every time you restart the app,
0:07 it goes away and it's not a real database. So we're going to fix that in this chapter.
0:13 What we're gonna do is work on saving pages and redirects and maybe even other information to a database we're going to use.
0:21 Sequel Alchemy sequel Alchemy is an O R M or object relational mapper, and it's by far the most popular way to talk to databases using Python.
0:30 It's been around for a long time. It's very polished, and it's actually what we're already using for most of the website
0:37 Remember, you saw we have these packages that were listed there make it big
0:40 in the details. We even talked about the difference between data driven pages and CMS
0:45 pages. All those data different pages are already handled with sequel alchemy and already stored
0:51 and managed in the database. So what we're gonna do is actually just add on to our existing database model, so we'll start by doing a quick tour of the
1:00 data model as it is, and then we'll add the few extra things we need