Dear Everybody
I am doing a Django tutorial on Templates. I am currently at this code:
from django.template import Template, Context
>>> person = {'name': 'Sally', 'age': '43'}
>>> t = Template('{{ person.name }} is {{ person.age }} years old.')
>>> c = Context({'person': person})
>>> t.render(c)
u'Sally is 43 years old.'
What I dont understand is this line:
c = Context({'person': person})
Do both variables need to be called person to be used in this example or is it just random?
What is 'person'
refering to and what is person
refering to?
Thanks
L