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

File metadata

  • Download URL: django-debug-toolbar-template-profiler-2.0.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for django-debug-toolbar-template-profiler-2.0.1.tar.gz
Algorithm Hash digest
SHA256 bf5a62eca36ecade654629adbda936526e2a9fc737060c3ae536a1b808604daf
MD5 345772f4a3bf70e9473aec959cbeb3de
BLAKE2b-256 c97e95906f2af9ce521b7155c54e1c02fc433d8c6194bc6b9a3f796cb92c81a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_debug_toolbar_template_profiler-2.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7e674c5590edd2bcb186818aca1e17f6230ca2dd5183c882a21dc576cad5630c
MD5 2f0954d011688b024098ee88ffe70461
BLAKE2b-256 0167ea14b9f083ba0a56747c5d0459e538faa5c5a056358cb2b67b338fe3e203

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