如何在django shell中查看执行的数据库sql语句(Django 版本 1.8.10)
from django.db import connection connection.queries print Role.objects.filter().query