Analysing Django requests

Kolo can be used to analyse the request/response cycle of your Django project.


When using python runserver, the best approach is to add KoloMiddleware to the top of your MIDDLEWARE setting:


This will generate a trace starting when a request reaches KoloMiddleware and ending when the response reaches KoloMiddleware.

This will also generate a trace for each request generated by Django’s test client.


You can also use kolo run, but the autoloading functionality of runserver uses subprocesses, which Kolo can’t automatically trace. You can work around this by running kolo run runserver --noreload --nothreading.