A small collection of template tags for debugging and introspecting templates
Project description
A small collection of template tags for debugging and introspecting Django templates
Requirements
None, but the latest ipdb is highly recommended.
Installation
django-template-debug is available on pypi, so the easiest way to install it is using pip:
pip install django-template-debug
Setup
Add ‘template_debug’ to the INSTALLED_APPS iterable in your settings file. For example:
INSTALLED_APPS = ( ... 'template_debug', ... )
Add TEMPLATE_DEBUG = True to your local or development settings if it is not already set.
Unless TEMPLATE_DEBUG is set to True, the django-template-debug templates will return an empty string without doing anything. This behavior prevents your application from calling set_trace() or print in a production environment if django-template-debug template tags are accidentally commited and deployed.
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
Hashes for django-template-debug-0.3.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f912b3020528432720cc303483ac0e903fc3cbad71a5b65e62a00ba6bbb64499 |
|
MD5 | b4d3f334065f59968c941e7eb1eae995 |
|
BLAKE2b-256 | 4b55019a974504965b3f171f4761503e1ca0a4a79bcf52eb27d2f823012eff42 |