Adding a CMS to Your Flask Web App Transcripts
Chapter: The redirects (our bit.ly)
Lecture: Redirect introduction
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
We're going to add a cool little feature that turns out to be pretty simple but very useful and a great building block along our way towards a richer,
0:10
full featured content management system in our Web app. And that's redirects. So what are we talking about?
0:17
We want to be able to use short little Urals that redirect to a much longer
0:21
more complicated one. Either on our own website or external websites will use it for both. So, for example, over here, a talk Python,
0:30
the podcast website. Maybe you want to talk about our Python for absolute beginners course
0:34
So we get enter talk by thunder out of M slash beginners on that site Internally, it knows about this.
0:41
You're on It says they were going to send that over to this much longer.
0:45
Ural Training dot doc by found out of him slash courses slash explored beginner slash some great long mural that's on the end of that.
0:52
That's faded out in Firefox there. So this is the kind of feature that we're going to build into our CMS in Tora Web app. Now you might think,
1:00
OK, this is pretty simple. We're going to keep track of just like slash beginners and the destination rural and that's it. And it done. Yeah,
1:06
The actual act of doing the redirect is simple. However, we're gonna also do our first pass and a really important aspect of our
1:16
CMS. And that's having a back end admin section where people who want to edit
1:21
stuff about the CMS in the database can log in and create things like thes redirects They can type it in.
1:27
Hey, if somebody type slash beginners go over to this place and keep track of
1:31
it, that's gonna be really important for allowing people to create and edit CMS pages
1:35
We're gonna start with the simpler idea bursts because it'll give us a good foundation