开发者

"super" or "base" Template in Django

开发者 https://www.devze.com 2023-03-14 22:55 出处:网络
If I overri开发者_C百科de a parent block, how do I include the parent inside of the overridden copy?From the docs:

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

精彩评论

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