Adding a CMS to Your Pyramid Web App Transcripts
Chapter: Welcome to the course
Lecture: What we'll cover

Login or purchase this course to watch this video and the rest of the course contents.
0:00 So what are we gonna cover during this course?
0:03 One of the specific lessons and chapters we're going to start by focusing on routing how we describe and control which your URLs or Web site responds to.
0:12 And what part of our Web app those Urals our map to? You'll see that routing is the very center point of the CMS capability.
0:19 Not super complicated, but it's going to be in this one place after all the data driven stuff has happened.
0:25 Or we're gonna lock in and grab onto the euro and get a chance to decide if this virtual idea of a page or a redirect or something like that belongs to our CMS or it really is just a bad request and it's a four a four.
0:38 So we're gonna talk about routing specifically around how we add the capability to add CMS requesting basically catch every single request of the site.
0:46 Then we're going to start from an existing app.
0:49 The ideas were taking a data driven Web app as I showed you in the beginning, and we're going to add the CMS functionality to it.
0:55 So we have a rich, powerful German Web app that we've already created, and we're going to do a quick tour of that.
1:02 So you're able to understand it and work with it and completely know what we're working with as we start building on top of it there won't add to core CMS capabilities.
1:12 First is we're gonna create some kind of redirect service, something like Billy.
1:16 So, for example, if you were to go to talkpython.fm/ YouTube, that's going to redirect you over to YouTube with some huge, terrible girl that I honestly can't remember.
1:25 It's like 20 random characters. So what we'd like to do is one of the features of our CIA masses.
1:31 Have the ability have simple, short, memorable your l's that we can share on social media that we can put in other places and to say, like signature of an email, something like that.
1:42 And then it will actually take you to the real page, either somewhere else on the site or somewhere even external.
1:49 So we're gonna take our first step into the CMS world by adding this redirect feature to this app and then more in line with Brian what you're imagining.
1:58 We're gonna add basically the capabilities of WordPress to our site.
2:02 And what I mean by that is the ability to create arbitrary landing pages with rich formatting with a rich editor.
2:09 Control the or Els determine whether or not their public or hidden those kind of things.
2:14 So we're gonna have these redirects, and then we're gonna add these pages now.
2:17 Actually, having them displayed in our site is pretty straightforward, but having the admin section to properly work with them and edit them, that's gonna be a lot of what we're gonna focus on on Chapters three and four.
2:29 Of course, we want to save this content to the database.
2:31 Up to this point, we're not actually gonna worry about the database, which could be used like bake in memory structures that will stand in for the database.
2:38 But eventually we're going to say, Let's stop for a minute and store this into our database using sequel alchemy. I'll show you how to do that.
2:45 We also have an appendix on sequel alchemy.
2:47 If you're not familiar with it, you can check out the appendix, but we don't go over it in the course proper.
2:53 Each team l is, ah, decent format, but It has a lot of problems. It's hard for people to make sure they make no mistakes.
2:59 They close every opening Div as a closing div and so on. So for the most part, we're gonna leverage mark down.
3:06 But we're also going to see that we can bring in little bits of HTML.
3:09 Avi need fancy formatting like a giant image that spans the top of the page or something along those lines. We also want to have a rich editor.
3:17 We're gonna need a really nice editing experience, both for beginners who are not familiar with HTML a markdown, but also something with cool hot keys and highlighting and color hence and what?
3:27 Not for people who know what they're doing but just wanna have a much better experience.
3:31 So we'll see that we can bring in some really powerful back in editing tools for our pages.
3:36 And then we're gonna bring in a library that lets us reuse parts of mark down within other pages. It's dramatically, dramatically, faster. You'll see.
3:46 We'll get, like, 100 times speed up by going from standard mark down to this advanced markdown system and so on.
3:53 So we're gonna use this other library that take some of the ideas here but makes them very high performance, more reasonable and just gives new capabilities to our whole CMS.
4:03 One reason mark down and HTML.
4:06 And finally, we're going to add a little bit of logging to make sure that we get good visibility to what's happening in our application.
4:13 And so this is what we're gonna cover.
4:15 I think it's not super hard to build, but it adds an incredible capability to our Web application that's gonna pay off for years and years as other people can log in work with our Web app.
4:26 In a lot of the pages that were creating or managing, don't require developers to go change code and then redeploy it. That's just more like WordPress.
4:34 You log in and you edit the page, edit the redirects, and off they


Talk Python's Mastodon Michael Kennedy's Mastodon