Skip to main content
Django Code Completion Easy +10 XP

Template Variable

Complete to render a variable in a Django template.

DjangoFill in the blank
<h1>{{ ___ }}</h1>

Type the missing code

Show answer and explanation

Answer: title

{{ variable }} renders a context variable's value. The variable name must match a key in the context dictionary.

Hint: Double curly braces render context variables.

What this challenge tests

Code Completion in Django: templates, variables.

Related challenges