|
|
1
4
块标记不能有条件地设置,因为它们是模板继承的一部分。我相信这是Django开发者明确的设计决定。看见 this Django ticket 以及 this other question 堆栈溢出。 |
|
|
2
1
设置的一种方法
|