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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access