Inspecting objects
Hi. I have just started diving into Django and this question came up
- is there a way for me to examine all the attribute values of an
object? In Rails there's such a thing as debug statement which spits
out all the details about the object. From what I have seen so far in
Django, I can either do a __unicode__() trick, but it forces me to
specify which attribute to show. I also read about dir() and
__dict__, but they show me sets of attributes without their values. Is
there something I'm missing? Thank you!
Luka
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home