4.1 Introduction

Now that we have structured and created data, we must determine how the user will see these data. In this chapter, we create Django templates, which Django uses to display data and which act as the View in MVC architecture.

We begin the chapter by revisiting the Hello World example originally seen in Chapter 2: Hello World: Building a Basic Webpage in Django. By doing so, we gain perspective on what Django templates must achieve to easily and quickly display data. Once the goals are established, we build our templates. Finally, we see how Django allows us to interact with templates.

This chapter assumes basic understanding of HTML. The book does not provide a primer on the subject, as entire books have been written on the topic ...

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.