Django调试显示页面的所有变量

问题描述:

是否可以使用模板标签(或任何其他技巧)显示页面中所有可用的变量?

Is there a template tag (or any other trick) I can use to display all the variables available in a page?

如果启用了调试,则会出现模板标记称为 {%debug%}

If DEBUG is enabled, there's a template tag called {% debug %}