Sunday, 18 August 2013

Django: Is there a way to display a variable in a Django template like foo.inspect in Rails?

Django: Is there a way to display a variable in a Django template like
foo.inspect in Rails?

Rails provides an awesome way to inspect variable contents in a template:
<%= foo.inspect %>. Is that possible to do the same in Django? {% debug %}
is a bit too messy.

No comments:

Post a Comment