Python for Entrepreneurs Transcripts
Chapter: Course Conclusion
Lecture: Lightning review: pyramid-building-blocks

Login or purchase this course to watch this video and the rest of the course contents.
0:01 Now you've made it through this whole course, it's almost 20 hours of content. So we wanted to take this opportunity to go through every single chapter
0:09 and go at a very high level through everything that we learned.00:12 So before we put the wraps on this course,
0:16 let's touch, do a little quick lightning review. First thing that we talked about was the Pyramid web framework and the web building blocks.
0:25 So when we think about the building blocks, these are the major moving pieces of Pyramid. So the first one that we touched on was routes.
0:33 We're going to take some url and we're going to map it to some functionality in our web application.
0:38 So we have this rich routing framework to map, not just URLs to functions but partition and past data as part of those function calls.
0:47 We have views and the Pyramid nomenclature, and these are the functions or methods that actually process the request.
0:55 If you're coming from the nvc pattern way of thinking these would be considered controllers in nvc.
1:02 We have templates, these are the Chameleon dynamic HTML pages, again views in the nvc world, and we have our models.
1:10 Now these are basically dictionaries that we return from our view methods, and they can be passed over to the Chmeleon templates
1:17 or they could be passed like a Javascript's utilizer for services. And of course, we saw that the framework has rich support for static assets
1:27 things like css and Javascript and images and so on. And we also have a multiple configurations that we could use
1:33 this is the development.any and production.any files. We might put our Stripe API key or test Stripe keys into the development one
1:43 but of course, we want to make real money so we'll put our actual real Stripe keys in the production one.


Talk Python's Mastodon Michael Kennedy's Mastodon