Skip to main content

Displays template rendering time on the timeline

Project description

https://img.shields.io/pypi/v/django-debug-toolbar-template-profiler.svg

An extra panel for django-debug-toolbar that displays time spent rendering each template.

For example:

https://raw.githubusercontent.com/node13h/django-debug-toolbar-template-profiler/master/screenshot.png

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.

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-2.0.2.tar.gz.

File metadata

  • Download URL: django-debug-toolbar-template-profiler-2.0.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for django-debug-toolbar-template-profiler-2.0.2.tar.gz
Algorithm Hash digest
SHA256 bdbbbbbbce09fb918911e4e8fb9bf5987edee6cac5d0097965f3df61099ee3d9
MD5 43fc14b51cc635eefd0b1dad5555835f
BLAKE2b-256 8ebf42aa5a618cd29cc11fef7911ae08abd98535bb8d083287d6901264706a79

See more details on using hashes here.

File details

Details for the file django_debug_toolbar_template_profiler-2.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_debug_toolbar_template_profiler-2.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 31b1bfc3bc8af29193f0b79ae3180352ee369501979f0034d21848372e2a0894
MD5 3a1d459a55980322945e943ffcb72af4
BLAKE2b-256 df3ae3c799524b0077bc64c016e06dcb21f17b27ff4b60240928ddf6cd8ab674

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page