Adding a CMS to Your Flask Web App Transcripts
Chapter: The pages (our WordPress)
Lecture: CMS Page introduction

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Well, I'm pretty excited because we've come to the chapter where we really get to focus on what you probably consider as the core feature of a CMS,
0:08 or content management system, that we're plugging into our Web app here. But what are we talking about with these CMS pages?
0:16 Probably the best way to understand it is to compare them to traditional data driven pages And I was just looking at an example,
0:23 and then I'll make sense of these two for you. If you're not sure what I'm talking about. Here's one page from our website Weaken.
0:28 Go and dig into the details about a package. This one is the AWS Seal I, the Amazon Web service command line interface.
0:38 Here's another one where we're getting help. We haven't created this one yet,
0:41 but we're going to create this one pretty much as Is this what you would get if you click that help link in the top of the navigation?
0:48 At first glance, they look kind of the same, right? They have the same shell. The CSS style is definitely the same things like that.
0:55 However, they're very, very different. One on the left is a data driven page, and what I mean by that is in the database,
1:01 there are multiple entries or models that have certain pieces of information. In the job of this page is to in a very structured way,
1:08 pull out the specific version of that model from the database. So, in this case, plus a WSC Allies settings and fill them in all
1:17 over the place. Like right here We have the name of the package in the current version that's shown on this page,
1:24 and we have the command to install that package. Do we have whether or not it's the latest version?
1:29 And when that version was released till we pulled the package details from the database and a list or collection of releases from the database?
1:38 We also have the summary of the package. Here we have a bunch of links that will take you they over the project description
1:45 or the release history or the condemn mod files from this all has to do with
1:50 this particular package links at the bottom like you barely barely see home page down there
1:54 That's of course, set in the database in this description as well. Everything about this, his just I'm gonna have exactly this structure,
2:04 but very by the piece of data that working him back a good example to think about this also might be Amazon,
2:09 right? Like I'm looking at a book that looks the same for every single book It just happens, have different details filled in on the right.
2:17 The CMS page is very different. It's probably stored in the database technically,
2:22 but for all purposes, it's just a blob of text that's dropped on the page Right this. Hello, this help with Pipi,
2:29 I do you need help? It's on the package. That whole section, there's no structure. It is. Here is the text boom.
2:35 Whatever they typed in its that this is great for landing pages for these help pages
2:39 for other parts where people just need to write informational stuff on the Web. But it's not exactly structured with a whole bunch of different things.
2:46 Coming out of the database like this one on the left is Do you might ask Why do I need to put that in the database? I could just create static files.
2:54 I could go and create mark down. There's even whole things like Pelican, that will actually go on a problem.
2:59 A bunch of static files generate these Web pages that would look like the thing here on the right. Well, that works for the Corbett.
3:07 But there's also other dynamic things. Notice. We still have the fact that you're logged in or you're not logged in whether or not you're in admin.
3:14 There's a lot of stuff going on that still needs the smarts. Needs the behavior of our data driven Web app.
3:20 It's just this page. Why do we need to go right source code to create it. We don't My show, Bill. Just log into an admin section,
3:27 type some stuff out, and now we have a help page on our website. So that's what we're gonna focus on on this chapter building the thing on the right
3:34 Basically, the white part of the right page wouldn't be a lot of fun


Talk Python's Mastodon Michael Kennedy's Mastodon