django-template_tree
Generate diagrams showing relationships between templates in Django projects
Documentation
The full documentation is at https://django_template_tree.readthedocs.io.
Quickstart
Install django-template_tree:
pip install django_template_tree
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'template_tree',
...
)
Add django-template_tree’s URL patterns:
from template_tree import urls as template_tree_urls
from django import settings
if settings.DEBUG:
urlpatterns += [
url(r'^__tt__/', include('template_tree.urls', namespace='template_tree')),
]
Features
Displays a collapsible tree diagram showing the hierarchy of templates used by a Django application.
Nodes can be collapsed and expanded, by clicking on them.
Apps can be filtered out of the tree, using the ‘exclude_app’ querystring parameter, thus:
http://localhost:8000/__tt__/?exclude_app=template_tree&exclude_app=admin
By default, admin is excluded, so http://localhost:8000/__tt__/ is equivalent to http://localhost:8000/__tt__/?exclude_app=admin
In order to show the admin app as well, you will need to ‘unexclude’ it thus: http://localhost:8000/__tt__/?exclude_app=
Visiting the template_tree url, requesting an application/json response will return json data compatible with d3 hierarchies, so you can roll your own diagrams.
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
Credits
Tools used in rendering this package:
History
0.1.0 (2018-01-06)
First release on PyPI.
Metadata
Release files for django-template-tree 0.1.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_tree-0.1.1.tar.gz | 7.3 kB | Without provenance | Details for django_template_tree-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_template_tree-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for django_template_tree-0.1.1-py2.py3-none-any.whl |
Total release size: 14.9 kB
Release files / django_template_tree-0.1.1.tar.gz
| Download URL | django_template_tree-0.1.1.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df977b20dc86194fdfade84e38e196ded73579d246e0abde0e9cb7ecf40b3262
|
|
BLAKE2b-256 checksum How to use checksums |
3713bbe70a479ada2e6cd454fc75d3e1e11d89cfe0edb91e2165bdf4fd22c59a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_template_tree-0.1.1-py2.py3-none-any.whl
| Download URL | django_template_tree-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6e049d1f29398935bd01484a835e9533d7c7cacb1a4d14edfaf9f11a1ed93128
|
|
BLAKE2b-256 checksum How to use checksums |
a992fc707f1c77668b546c42e77f2779a9b0bba06563f04e8ac18626c6b8d69d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-template-tree 0.1.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.