MVC architecture

MVC is a widely used software architectural pattern in GUI-based applications. It has three components, namely a model that deals with the business logic, a view for the user interface, and a controller to handle the user input, manipulate data, and update the view. The following is a simplified schematic that shows the basic interactions between the various components:

MVC architecture

Let's further discuss each of these components.

Model

The model component of the MVC architecture represents the data of the application. It also represents the core business logic that acts on such data. The model has no knowledge of the view or the controller. When ...

Get Learning Python Application Development 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.