Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试调试 Pootle(pootle 是基于 django 构建的)安装,每当我尝试将模板添加到现有语言时,该安装都会失败并出现 django 事务错误。使用 python 调试器,我可以看到当 pootle 尝试保存模型以及在该会话中进行的所有查询时它会失败。
我看不到是什么具体导致保存失败。我认为 pootle/django 必须添加了一些数据库数据库约束,我该如何确定是哪一个?MySql(正在使用的数据库)显然无法记录失败的事务。
安装django调试工具栏,可以方便的查看所有已经执行的查询