django-template-breakpoint
Drop into a Python debugger from inside your Django templates.
Inspired by django-template-debug.
Installation
Install with pip:
python -m pip install django-template-breakpoint
Usage
Add the app to your INSTALLED_APPS setting:
INSTALLED_APPS = [
...,
"django_template_breakpoint",
...,
]
In a template, load the tag:
{% load breakpoint %}
Then set the breakpoint:
{% breakpoint %}
When this line is rendered by Django, sys.breakpointhook() will be called.
By default, this calls pdb.set_trace().
All template variables in use are added to the current scope.
If using pdb.set_trace(),
you can run dir() to see the names of all template variables.
Development
There's a test! Run it with python -m pytest.
Metadata
Release files for django_template_breakpoint 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_template_breakpoint-0.0.1.tar.gz | 3.5 kB | Without provenance | Details for django_template_breakpoint-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_template_breakpoint-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for django_template_breakpoint-0.0.1-py3-none-any.whl |
Total release size: 7.2 kB
Release files / django_template_breakpoint-0.0.1.tar.gz
| Download URL | django_template_breakpoint-0.0.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b67220b8b5c6ea5fa5d03e6b1583182f2498d01004a23a782ec9a865df1c1e22
|
|
BLAKE2b-256 checksum How to use checksums |
c78caf632c65fc825a4efee9e5676307cb19958d1a0da95744a0ddddb9534cc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Release files / django_template_breakpoint-0.0.1-py3-none-any.whl
| Download URL | django_template_breakpoint-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
000565b507de7858f7f5cc3b406c3e0c9d3738c24677b1143435bf36117540da
|
|
BLAKE2b-256 checksum How to use checksums |
804a35867a6195ecce7b71fb5a1751732f8b2f1eb01122664cf840a38d2fe784
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Security for django_template_breakpoint 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.