在Django中显示操作数据库的语句
2024-10-19 22:44:36
需要在配置中加上这个
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语句了
最新文章
- 51. 顺时针打印矩阵[print matrix in clockwise direction]
- C++ version the delaunay triangulation
- 3244: [Noi2013]树的计数 - BZOJ
- skyline TerraBuilder 制作MPT方法与技巧(1)
- PLSQL Developer Debug
- java系列--抽象类和接口
- java解析上传的excel
- 开源项目——小Q聊天机器人V1.4
- 简单记录一次getshell到进服务器的过程
- .net core 2.x - 日志 - to elasiticsearch
- https://finance.sina.com.cn/realstock/company/sh600522/nc.shtml
- 探索未知种族之osg类生物--渲染遍历之GraphicsContext::runOperations
- mysql存储过程和常用流程控制
- C#遍历菜单项
- vue-生存周期
- js原生面向对象-仿layui选项卡
- GIS原理学习目录
- jspSmartUpload使用初步
- Django 实现CRM 问卷调查功能组件
- [ActionScript 3.0] as3启动QQ
热门文章
- Simple Redux
- springcloud_Hystrix(熔断器)
- cc2530的第二次实验,用按键控制流水灯
- 字符串Hash学习笔记
- kafka部署在云服务器(centOS 6.5),本地远程连接问题
- nginx 配置ssl
- 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
- 利用python爬虫爬取图片并且制作马赛克拼图
- myeclipse的安装与破解
- 模拟25A 题解