tags:

views:

339

answers:

5

I'm looking for a way to find out the class structure at a glance for django. Is there a link to an overview of it?

A: 

I'm not aware of a reference diagram. But you could probably generate one using a tool like the following:

ars
A: 

Graphviz is solution worth looking at. Personally, I much prefer a graphic representation over UML

brianz
Yes. I did install django-extentsions, and have used it's graph_models option or whatever, but I dont really need _my_ models yet. Its the django class structure that I need to deal with. I just want to familiarize myself with all of django, truth to be told, since I plan on using it a fair bit.
chiggsy
+4  A: 

In the app django_extensions on google code. There is GraphModels command

dixon
Yes, this generates output for GraphViz, which then generates the image. So you'll need to download and install graphviz as well.
monkut
A: 

A class diagram of most of django's class structure is really not very interesting or useful for that matter. The problem is that most classes you use for development with django are standalone in the sense that they don't branch out to child classes. The only thing that comes to mind is the structure of the class-based generic views, but that's not yet committed to trunk.

Other than that, there's really not much class structure that you use when developing with django. There are several examples for development for django, but most are transparent to the user (e.g. QuerySet and its children classes). I think a much better source for a better overview is the documentation and the source in general (no pun intended).

Cide
Thanks for the information. I did read the docs and source. However, I am looking for an answer to my question, not a viewpoint on what questions I should be asking.
chiggsy
A: 

Actually, this was what I was looking for.

chiggsy
Probably shouldn't have used the word diagram in your question then.
railsninja
Well, I was looking for a diagram in the beginning, what I found was suitable.
chiggsy