Does a reverse sql inspector exist for django & po

2019-08-22 03:48发布

Does a reverse sql inspector exist for django & postgres? Something that shows you what is the origin of the sql view in django?

Something like this: https://github.com/rory/django-sql-inspector, but for postgres.

(Please let me know if you don't know of one, because hearing a handful of respectable peeps say they haven't is better than silence.)

1条回答
干净又极端
2楼-- · 2019-08-22 04:22

I can suggest django-sql-stacktrace, "github.com/adw0rd/django-sql-stacktrace";. Beside this django.backend.db logger that you can configure in the setting along with django.request logger to inspect the sql trace. Here there is a sample logging: configuration:docs.djangoproject.com/en/1.5/topics/logging/…. I hope this can be helpful.

查看更多
登录 后发表回答