最好的 Djangosyncdb 崩溃调试技术是什么?
最好的 Djangosyncdb 崩溃调试技术是什么?
我之前问过一个关于manage.pysyncdb返回异常的问题 答案是应用程序导入错误。
我想了解这项技术用于查找导入错误的地方。
我尝试了 ./manage.pysyncdb --verbosity=2 但我没有通过这种方式获得更多信息。
What is the best Django syncdb crash debugging technique ?
I've previously asked a question about a problem with manage.py syncdb returning an exception
and the answer was that the app has a wrong import.
django manage.py syncdb not working?
I'd like to know the technique used to find the place where there is a wrong import.
I tried ./manage.py syncdb --verbosity=2 but I didn't get any more information that way.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你从另一个角度看问题。
syncdb 与“导入”没有任何关系。您错误配置了 python 或/和 django 安装,这是一个问题。
如果你想调试 sql 查询发生的情况,那么你应该使用
You look at the problem the other way around.
syncdb doesnt have anythin to do with "import". You have misconfigured python or/and django install and this is a problem.
If you want to debug what happen with sql queries then you should use