Django1.7中文入门教程:[21]使用模板系统
1、回到我们应用中的detail()方法,现在我们重新编辑polls/detail.html.
![Django1.7中文入门教程:[21]使用模板系统](https://exp-picture.cdn.bcebos.com/359bee5e4a2379718b64286c93196120a6cde3cd.jpg)
2、模板卺肿蓦艚系统使用“.”符号来进入到变量属性,例如:{{question.question_text}},因为在view中的detail()方法中传递了一个question对象过来。
1、回到我们应用中的detail()方法,现在我们重新编辑polls/detail.html.
2、模板卺肿蓦艚系统使用“.”符号来进入到变量属性,例如:{{question.question_text}},因为在view中的detail()方法中传递了一个question对象过来。