Answer the question
In order to leave comments, you need to log in
How to debug an object in the console?
Tell me how to debug an object in the console. Here's my example:
In [18]: from django.test import Client
In [19]: с = Client()
In [20]: response = c.post('/sign_up')
In [21]: response
Out[21]: <django.http.response.HttpResponseBadRequest at 0x104582518>
Answer the question
In order to leave comments, you need to log in
the dir function shows the attributes of the object
if you use ipython,
then you write , press the
tab and all the properties
are shown, there is also bpython, it shows all the attributes at once by pressing the dot
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question