render() and the Template Context
Pass data from a view into a template.
Templates Hold Your HTML
A template is an HTML file with little placeholders. Your view fills those blanks with real data before it reaches the browser. 🎨
Meet the Context
The context is just a Python dictionary your view hands to the template. Its keys become the variables you can print inside the page.
context = {"name": "Ada", "count": 3}All lessons in this course
- render() and the Template Context
- Template Tags and Filters
- Template Inheritance with extends and block
- The url Tag and static Tag