Tutorial
Installation
Install the python package
pip install kolo
Install the VSCode extension.
Configuration
Add Kolo to the top of your
MIDDLEWARE
insettings.py
:
MIDDLEWARE = [
"kolo.middleware.KoloMiddleware",
...
]
Enable Django’s debug mode (in
settings.py
):
DEBUG = True
First request
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:
More help
If you’re stuck with your Kolo set up you can schedule a meeting with us.