PHP var_dump in Django templates

environment Python 3.5.0 Django 1.9.2

Use Django's Built-in Filters (http://docs.djangoproject.jp/en/latest/ref/templates/builtins.html#ref-templates-builtins-filters)

template.html


{{ variable|pprint }}

Now you can check the contents and type of the array.

Recommended Posts

PHP var_dump in Django templates
Handle constants in Django templates
Get parameter values ​​in Django templates
Models in Django
Forms in Django
Designing URL schemes and creating templates in Django
Model changes in Django
Performance optimization in Django 3.xx
Implement follow functionality in Django
php continuous characters in one
Rename table columns in Django3
Output table structure in Django
(Note) Django in Vagrant environment
Show Django ManyToManyField in Template
reload in django shell with ipython
Set placeholders in input fields in Django
8 Frequently Used Commands in Python Django
Dynamically add form fields in Django
Errors related to memcached in django
Implementation of login function in Django
Register your Django application in your project
Write foreign key constraints in Django
How to reflect CSS in Django
Switch the language displayed in Django 1.9
The meaning of ".object" in Django
Deploy Django in 3 minutes using docker-compose
Pin factory_boy seed value in Django
GraphQL API with graphene_django in Django
Like button implementation in Django + Ajax
Get the query string (query string) in Django
Create a LINE Bot in Django