2.1 Introduction

The goal, when using the web framework, is to add code to the Model, View, and Controller sections to give life to the website you wish to build. I stated in Chapter 1 that every developer would need all three of these tools to build a functional website. However, a close look at Figure 2.1 shows that it is possible to build a website using only the Controller portion of Django.

Image

Figure 2.1: Application of MVC Architecture Diagram

In this chapter, we build a single webpage in Django using only the Controller (Chapter 5: Creating Webpages with Controllers in Django) to demonstrate that the diagram is technically correct. However, ...

Get Django Unleashed 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.