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 ...

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.