Skip to main content

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:


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:

    # ...
    # ...

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:

    # ...

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.

Files for django-debug-toolbar-template-profiler, version 2.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_debug_toolbar_template_profiler-2.0.1-py2.py3-none-any.whl (9.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-debug-toolbar-template-profiler-2.0.1.tar.gz (8.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page