> On 17 oct. 2015, at 10:19, Claude Paroz <
cla...@2xlibre.net> wrote:
>
> I like the idea. However, instead of monkey-patching the Django CursorDebugWrapper like DDT is doing now, I'd rather see a solution where we use dynamic logging configuration to output the SQL commands, if possible.
Since the option would also be available for runserver, it would fill a gap whenever the DDT isn’t usable e.g. when using Django as an API in a SPA.
On a related note, it would also be interesting to rework the DDT to hook to the django.db.backends logger instead of monkey-patching.
--
Aymeric.