需要在配置中加上这个

LOGGING = {
'version':1,
'disable_existing_loggers':False,
'handlers':{
'console':{
'level':'DEBUG',
'class':'logging.StreamHandler',
},
},
'loggers':{
'django.db.backends':{
'handlers':['console'],
'propagate':True,
'level':'DEBUG'
},
}
}

这样执行命令的时候,就会在控制台打印相应的sql语句了

最新文章

  1. 51. 顺时针打印矩阵[print matrix in clockwise direction]
  2. C++ version the delaunay triangulation
  3. 3244: [Noi2013]树的计数 - BZOJ
  4. skyline TerraBuilder 制作MPT方法与技巧(1)
  5. PLSQL Developer Debug
  6. java系列--抽象类和接口
  7. java解析上传的excel
  8. 开源项目——小Q聊天机器人V1.4
  9. 简单记录一次getshell到进服务器的过程
  10. .net core 2.x - 日志 - to elasiticsearch
  11. https://finance.sina.com.cn/realstock/company/sh600522/nc.shtml
  12. 探索未知种族之osg类生物--渲染遍历之GraphicsContext::runOperations
  13. mysql存储过程和常用流程控制
  14. C#遍历菜单项
  15. vue-生存周期
  16. js原生面向对象-仿layui选项卡
  17. GIS原理学习目录
  18. jspSmartUpload使用初步
  19. Django 实现CRM 问卷调查功能组件
  20. [ActionScript 3.0] as3启动QQ

热门文章

  1. Simple Redux
  2. springcloud_Hystrix(熔断器)
  3. cc2530的第二次实验,用按键控制流水灯
  4. 字符串Hash学习笔记
  5. kafka部署在云服务器(centOS 6.5),本地远程连接问题
  6. nginx 配置ssl
  7. utility.py:61: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array in
  8. 利用python爬虫爬取图片并且制作马赛克拼图
  9. myeclipse的安装与破解
  10. 模拟25A 题解