Install the python package
pip install kolo
Install the VSCode extension.
Add Kolo to the top of your
MIDDLEWARE = [ "kolo.middleware.KoloMiddleware", ... ]
Enable Django’s debug mode (in
DEBUG = True
Start Django’s development server:
python manage.py runserver
Make a http request to your Django project.
View the request in the Kolo tab in VSCode:
Clicking the “Frames” entry in the list will open the frame visualization in a new tab:
This also includes a flame graph to visualize how long each part of your request took.
Clicking the “Queries” entry in the list shows a list of each database query made as part of your request:
If you’re stuck with your Kolo set up you can schedule a meeting with us.