Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
django-debug-toolbar-template-profiler
Advanced tools
.. image:: https://img.shields.io/pypi/v/django-debug-toolbar-template-profiler.svg :target: https://pypi.python.org/pypi/django-debug-toolbar-template-profiler
An extra panel for
django-debug-toolbar <https://django-debug-toolbar.readthedocs.io>
__
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 <https://django-debug-toolbar.readthedocs.io/en/latest/installation.html>
__.
Second, install this package:
.. code-block:: sh
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:
.. code-block:: python
INSTALLED_APPS = [
# ...
"debug_toolbar",
"template_profiler_panel",
# ...
]
Fourth, configure django-debug-toolbar's DEBUG_TOOLBAR_PANELS
setting
as per its documentation <https://django-debug-toolbar.readthedocs.io/en/latest/configuration.html#debug-toolbar-panels>
__
to include the panel. You'll need to copy the default and add the panel at the
end:
.. code-block:: python
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.
FAQs
Displays template rendering time on the timeline
We found that django-debug-toolbar-template-profiler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.