最好的 Djangosyncdb 崩溃调试技术是什么?

发布于 2024-09-05 23:41:48 字数 310 浏览 14 评论 0原文

最好的 Djangosyncdb 崩溃调试技术是什么?

我之前问过一个关于manage.pysyncdb返回异常的问题 答案是应用程序导入错误。

django 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无需解释 2024-09-12 23:41:48

你从另一个角度看问题。
syncdb 与“导入”没有任何关系。您错误配置了 python 或/和 django 安装,这是一个问题。
如果你想调试 sql 查询发生的情况,那么你应该使用

python manage.py sqlall __yourappname__

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

python manage.py sqlall __yourappname__
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文