RESTful and HTTP APIs in Pyramid Transcripts
Chapter: Conclusion
Lecture: Lightning review: Web building blocks

Login or purchase this course to watch this video and the rest of the course contents.
0:01 Okay, next we came to web building blocks in pyramid. So we saw that first thing we had to do is create a route
0:07 and we did this in the dunder init, __init__.py in the main method there and we said we have to set up patterns, not regular expressions,
0:15 like some frameworks with just patterns with little template holes in them, if you will and we're going to map those over to views.
0:22 Views sometimes known as controllers in the nvc world, these are the things that process our requests and decide what to send back if anything at all;
0:30 templates, these are the dynamic HTML views that sometimes we send back, this was the home page, this was the doc page, things like that.
0:37 Models, we had several levels of models, the actual thing we return were often— often, not always, Python dictionaries
0:45 unless we configure the renderers to treat special types that it knows about. But, we also had view models in there,
0:52 which served a slightly different role than the models typically talked about here. Static types and static files right, so css, javascript, images,
1:00 we saw that we can map a special part of our web application to serve up files and no other part of will. We also did a lot with configuration,
1:09 in the beginning we just played with development.ini, but as we got to deployment, we saw that the production.ini
1:15 and the ability to have different configurations for locally running our code versus running in production, turns out to be super helpful.


Talk Python's Mastodon Michael Kennedy's Mastodon