Django v1.2 多数据库数据库调试应用程序?

发布于 2024-09-11 03:14:42 字数 244 浏览 1 评论 0原文

有人知道是否有支持 Django 多数据库 API 的 django 数据库调试应用程序吗?

我曾经使用 django-debug-toolbar ,但它不支持多个数据库,并且 相应票证现已开放3个月。

有什么替代方案值得考虑吗?

anyone know if there's a django database debugging app which supports Django's multi-db API?

I used to use django-debug-toolbar but it doesn't support multiple databases and the corresponding ticket is now open for 3 months.

Are there any alternatives worth looking at?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

巡山小妖精 2024-09-18 03:14:42

在 1.2 版本发布之前,这一直是我要做的事情清单上的事情,但我已经被淹没了。我也不熟悉 django-debug-toolbar 的各个分支上添加此功能的任何工作。目前,我不知道还有其他工具可以做到这一点。

在 Python shell 中与 runserver 一起运行总是有后备方案:

>>> from django.db import connections
>>> connections['my_db_alias'].queries

This has been on my list of things to do since before 1.2 came out but I've been swamped. I'm not familiar with any work on the various branches of django-debug-toolbar that add this either. And at present, I don't know of other tools that do it.

There's always the fallback of running this in a Python shell alongside runserver:

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