Displays template rendering time on the timeline
Project description
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.
Note: currently django-debug-toolbar 2.0+ is not supported.
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-debug-toolbar-template-profiler-1.1.0.tar.gz
.
File metadata
- Download URL: django-debug-toolbar-template-profiler-1.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c84474601464e497adca46027f2d9599ff7875411431ed20898a3e703f696a8c |
|
MD5 | 2e22985edd1885fb4e2c5f3aea4073c0 |
|
BLAKE2b-256 | 41d048013ccf1f7daad56fc2b61d061e048bc4fbc8f5ddbd93268b92a29809d5 |
File details
Details for the file django_debug_toolbar_template_profiler-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_debug_toolbar_template_profiler-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4771f0c6c619ceaabc1466109d429262f82f00a16f7e7b111552437b3c685cd5 |
|
MD5 | 5835dd96a1e9b1d1a2f89394ac662498 |
|
BLAKE2b-256 | 0f39462ddc0ebcb7dc74f8f21b539c235cd8b8ae9c1eb8e34a35c2fe620c72b1 |