开发者

"super" or "base" Template in Django

If I overri开发者_C百科de a parent block, how do I include the parent inside of the overridden copy?


From the docs:

If you need to get the content of the block from the parent template, the {{ block.super }} variable will do the trick.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜