How to print mysql statements executed / to be executed on a statement in django?
I want want to examine what django does with databse when I execute some statement with a django model
For instanceGroup.members.all()
with manage.py shell.
Is th开发者_开发知识库ere any way of doing this?
You can use the Django Debug Toolbar.
- Introducing the Django Debug Toolbar
- django-debug-toolbar (github)
print Group.members.all().query
精彩评论