P
P
Pavel Ivanov2015-03-06 11:59:41
Django
Pavel Ivanov, 2015-03-06 11:59:41

What can be used in Django to see the contents of a variable?

Good afternoon!
PHP has var_dump so that you can print a variable on the site. I have a Django project and am new to it. I need to figure out how convenient it is to view the contents of variables if my environment is:
client side: extjs
server side python 2.7, django 1.6

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey K, 2015-03-06
@mututunus

print

W
webbus, 2015-03-06
@webus

import ipdb; ipdb.set_trace()

S
Salavat Sharapov, 2015-03-06
@desperadik

You can also use pprint in templates.
But for me it's breakpoints!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question