title: Laravel's dd() equivalent in django
body: <p>I am new in Django and having a hard time figuring out how to print what an object have inside. I mean type and value of the variable with its members inside. Just like Laravel's <code>dd(object)</code> function. Laravel's <code>dd()</code> is a handy tool for debugging the application.</p>
  
  <p>I have searched for it. But found nothing useful. I have tried <code>pprint()</code>, <code>simplejson</code>, <code>print(type(object)</code> and <code>{% debug %}</code>. But none of them could provide the required information about an object.
  Here is a sample output from Laravel's <code>dd()</code> function.
  <a href="https://i.stack.imgur.com/Q3BqX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Q3BqX.png" alt="enter image description here"></a></p>
  
  <p>In this Image, I am printing the request object of Laravel. as you can see its showing complete information about an object. I mean name of class it belongs to, its member variables. also with its class name and value. and it keeps digging deep inside the object and prints all the information.</p>
  
  <p>But I am not able to find a similar tool in Django. That's hard to believe that Django doesn't have such a useful tool. Therefore I would like to know about any third party package that can do the trick.</p>
  
  <p>I am using Django version 2.0.5. and trying to print django.contrib.messages</p>
  
  <p>Also, I want the output to be displayed in the browser, not in the console. In a well readable way that's why I am asking for a Django package that can take in the object and render a well-formed presentation of object architecture.</p>