An extra panel for django-debug-toolbar that displays time spent rendering each template.
For example:
Installation
First, you’ll need to install and configure django-debug-toolbar as per its installation instructions.
Second, install this package:
pip install django-debug-toolbar-template-profiler
Third, add it to your installed apps - order doesn’t matter but after debug_toolbar will keep it neatly grouped:
INSTALLED_APPS = [
# ...
"debug_toolbar",
"template_profiler_panel",
# ...
]
Fourth, configure django-debug-toolbar’s DEBUG_TOOLBAR_PANELS setting as per its documentation to include the panel. You’ll need to copy the default and add the panel at the end:
DEBUG_TOOLBAR_PANELS = [
# ...
"template_profiler_panel.panels.template.TemplateProfilerPanel",
]
After this, you should see the “Template Profiler” panel when you load the toolbar. Both Django and Jinja2 template render() calls will be measured.
Metadata
Release files for django-debug-toolbar-template-profiler 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-debug-toolbar-template-profiler-2.1.0.tar.gz | 9.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_debug_toolbar_template_profiler-2.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 20.4 kB
Release files / django-debug-toolbar-template-profiler-2.1.0.tar.gz
| Download URL | django-debug-toolbar-template-profiler-2.1.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
740d4fa90f9c72fe97c896d5a395abc535cf8e9d571c1710186aa775a861d7f4
|
|
BLAKE2b-256 checksum How to use checksums |
630a5db0aca31dac95fadd63597f51ca082a3ae1b1bb2468858ab899aac4227b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 CPython/3.10.4
|
Release files / django_debug_toolbar_template_profiler-2.1.0-py2.py3-none-any.whl
| Download URL | django_debug_toolbar_template_profiler-2.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7c77b3d96a0f64a47ed80dec88bad0832fe2834d17da5cd77f86639680b56a8b
|
|
BLAKE2b-256 checksum How to use checksums |
8a764e24fab1e9f07610edfaf434614ae94ea7e0a5cfd9ab586a78f803ac397d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 CPython/3.10.5
|