Chapter 3. The Architecture of a TurboGears Application
In This Chapter |
TurboGears is built around the model-viewer-controller (MVC) paradigm. MVC is a system for breaking up applications into three different main sets of components: models, views, and controllers (see Figure 3.1). This is good because the model helps you to write applications faster and makes them easier to understand and maintain.
Figure 3.1. Keep your code separated with MVC
Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.