This tool allows you to stream the queries that are being executed in realtime from a Django application for review, profiling, filtering, formatting, and analysis.
Install Bun
Install the dependencies and compile the interface:
bun install
bun run build
-
Configure Django to send queries to the logger's socket on port 9999. In your Django
settings.pyfile extend yourLOGGINGconfiguration with the following entries:LOGGING = { "version": 1, "handlers": { "socket": { "level": "DEBUG", "class": "logging.handlers.SocketHandler", "host": "localhost", "port": 9999, }, }, "loggers": { "django.db.backends": { "level": "DEBUG", "handlers": ["socket"], "propagate": False, }, }, }
-
Start the logger with
bun start -
Start your Django application
-
Browse to http://localhost:3000/ to review the queries

