Django debug display all variables of a page

后端 未结 6 2042
既然无缘
既然无缘 2020-12-12 19:05

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

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 19:36

    If you use pycharm of professional version, you can set breakpoints on some lines in a template file and view the variable value.

    For more detail, follow this link.https://www.jetbrains.com/help/pycharm/debugging-django-templates.html

提交回复
热议问题