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.

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

File metadata

  • Download URL: django-debug-toolbar-template-profiler-2.0.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.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

Hashes for django-debug-toolbar-template-profiler-2.0.0.tar.gz
Algorithm Hash digest
SHA256 c983c9bd9fee1d0e297c52fa3551692e505eae9fc641e0d92dfc0d1b7b135a15
MD5 95b761f34f21ccffaf183998b0462776
BLAKE2b-256 54c7bf5dced4aa7df53dcebdedeb1860ce0bf5665d1e51f7f2005ba202a1dc00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_debug_toolbar_template_profiler-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e18f645b05b354ce3172e43cbcea7447431b1acdaced8a2291229548185676a2
MD5 4df5d1c77493fc7d43f359538ed3a0f1
BLAKE2b-256 8af57839b07d2ab8ccc7c4833e1ab89cb9bb1c179e9994d398cb27ae4f8dfae1

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