How to insert breakpoint in django template?
问题 How I can insert pdb.set_trace() in django template? Or maybe run some another debug inside template. 回答1: PyCharm Professional Edition supports graphical debugging of Django templates. More information about how to do that is here: https://www.jetbrains.com/help/pycharm/2016.1/debugging-django-templates.html PyCharm's debugger is very, very good. It is just about the best Python IDE available. Disclaimer: I am a satisfied customer, but have no other vested interest. 回答2: Here's a little