Django: show/log ORM sql calls from python shell

后端 未结 7 1112
臣服心动
臣服心动 2020-11-30 16:33

Using the excellent Django-Devserver I\'m finding all kinds of interesting and unexpected SQL calls in my code. I wanted to find where the calls are coming from, and so I\'m

相关标签:
7条回答
  • 2020-11-30 17:38

    Rob Hudson's Django Debug Toolbar, as well as its general awesomness, also includes a pretty nifty debugsqlshell manage.py command which does exactly this.

    0 讨论(0)
提交回复
热议问题