4.9 Putting It All Together
In this chapter, we discovered how Django implements the View portion of the Model-View-Controller architecture. Django allows the developer to easily create data to be displayed via the template system. The system comprises two parts: the actual template files and the template loader and renderer.
Template files are documents external to Django that act as a blueprint or mold for data. Templates allow the developer to write documents in a markup language, such as HTML, with gaps in them, which Django fills in. The developer instructs Django on how to fill these gaps via a domain-specific template language. The Django template language includes variables, template filters to modify the variables, and template tags ...
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