#100DaysOfCode in Python Transcripts
Chapter: Days 85-87: Fullstack web apps made easy
Lecture: Document details form
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
Alright, let's fix up this document details page. I did a little draggy, droppy magic to put title category and labels.
0:07
Labels and then another label to have their text that will programmatically set in the contents here as well.
0:14
There's no point in you seeing me drag that over, you would have done that a bunch. So let's just go over here, and go like this.
0:21
Talk equals self.item. In fact, I think we could probably go over here and do a data binding if we really want. This could be name.
0:36
This we're going to set in codes, we're going to take that away. This one we also, I think need to set in code.
0:42
This one we could add a data binding of contents. We'll just run it and see how we're doing. Click on one, boom. How awesome is that? There it is.
0:52
Okay, so really, really close. We got to set those two cause we don't want to transfer them over directly. Maybe we could do the created category,
1:00
but we'll just do it in code. Category is going to be doc of category. From the category we'll get the name. Oh, don't forget that's text.
1:16
Text, text, text. The text here we're going to set that to what we had in our item template. Like that. And, it'll be consistent I guess we'll say doc.
1:35
Okay, that should do it. Maybe one thing really quick here. Let's take this away, make this font a little bit bigger.
1:46
Same thing for the title, make it a little bit bigger. Alright, let's run it. Let's see, are we done? Let's try the feed parser.
1:55
Wow that is cool, isn't it? So document details here probably got to line that up a little, but we got this, here's your nice date.
2:01
It's under the documentation category, and then, there it is. Let's go find another. Let's go find the Higgs one.
2:07
There's the Higgs with a little bit of science stuff, has the crystals and it's under science. These are the things we search for
2:13
and it showed up over here. Like Higgs. Pretty amazing. Let's go check out the day one read me. There's the stuff about day times.
2:21
Okay, so our application is pretty much done. I'm going to call it done. This is really nice. Of course, there's a lot more we can do.
2:29
We probably want to save this version, and I'll call this final version. You know I actually I have a really cool version history,
2:35
that you can publish and roll back versions, all sorts of cool stuff, even clone it with git which I'll do and put into the repository for you guys
2:44
to look at so you can look at the code but you'll have to come back to Anvil to actually use it.