テンプレートに関する Django チュートリアルを行っています。私は現在このコードにいます:
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.'
私が理解していないのは、次の行です。
c = Context({'person': person})
この例で使用するには、両方の変数を person と呼ぶ必要がありますか、それとも単にランダムですか?
何を'person'
指していて、何をperson
指しているのか?