{"id":319,"date":"2008-06-25T16:47:38","date_gmt":"2008-06-25T21:47:38","guid":{"rendered":"http:\/\/crschmidt.net\/blog\/?p=319"},"modified":"2008-06-25T16:47:38","modified_gmt":"2008-06-25T21:47:38","slug":"djangographviz-visualizing-django-models","status":"publish","type":"post","link":"https:\/\/crschmidt.net\/blog\/archives\/319\/djangographviz-visualizing-django-models\/","title":{"rendered":"DjangoGraphviz: Visualizing Django Models"},"content":{"rendered":"<p>Earlier today, a coworker was trying to work out a diagram for the models in the Django app that I&#8217;ve been working on internally, to visualize the relationships between them. I did a quick Google, and found a reference to <a href=\"http:\/\/code.djangoproject.com\/wiki\/DjangoGraphviz\">DjangoGraphviz<\/a>, a super-handy little chunk of code. <\/p>\n<p>DjangoGraphviz did exactly what I needed it to, with no problems at all. (My only complaint is that it requires the DJANGO_SETTINGS_MODULE to be defined in order to get the &#8211;help output, somewhat unintuitive.) The software quickly generated a .dot file which I was able to turn into a lovely PDF, and print. I&#8217;ve now got a copy on the desk of each of the developers using the codebase, and I think it&#8217;ll prove a lovely piece of reference.<\/p>\n<p>So, if you want a quick visualization of your Django models, and you can install graphviz, I highly recommend DjangoGraphviz to do it.<\/p>\n<p>(Note that the wiki page itself recommends a couple other things more &#8216;built in&#8217; to Django, which are new to me: I didn&#8217;t try these, I just stuck with DjangoGraphviz, which did what I wanted.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Earlier today, a coworker was trying to work out a diagram for the models in the Django app that I&#8217;ve been working on internally, to visualize the relationships between them. I did a quick Google, and found a reference to DjangoGraphviz, a super-handy little chunk of code. DjangoGraphviz did exactly what I needed it to, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70,36],"tags":[],"class_list":["post-319","post","type-post","status-publish","format-standard","hentry","category-django","category-software"],"_links":{"self":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/comments?post=319"}],"version-history":[{"count":0,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/319\/revisions"}],"wp:attachment":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/media?parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/categories?post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/tags?post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}