PyCharm 4.0.0 Web Help

Some features described here are available in the Professional edition only.

Model dependency diagram enables you to get an overview of the models within your Django application, and analyze their relationships.


Model dependency diagrams are available for:

  • Django models
  • Google App Engine models
  • SQLAlchemy
To open the Model Dependency diagram of a project
  1. Do one of the following:
    • On the main menu, choose View | Show Model Dependency Diagram.
    • On the context menu of the Project tool window, or the editor, point to Diagrams, and choose Show Diagram or Show Diagram Pop-up.
    • Press Ctrl+Shift+Alt+UCtrl+Shift+Alt+UCtrl+Shift+Alt+UCtrl+Shift+Alt+UCtrl+Shift+Alt+UCtrl+Shift+Alt+UCtrl+Shift+Alt+UCtrl+Shift+Alt+UShift Alt ⌘ UShift Alt ⌘ UShift Alt ⌘ U, or Ctrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UAlt ⌘ UAlt ⌘ UAlt ⌘ U.
  2. Select the type of diagram from the pop-up window:



If you invoke Model Dependency diagram for a specific model, the diagram will open with the model in question centered and having the focus, and zoomed to actual size.

In the Model Dependency diagram, you can perform the following operations


Keeping the Alt key pressed invokes the magnifier tool, which will help you have a closer look at the most interesting or problematic areas of your Model dependency diagram.
Magnifier tool

See Also


Language and Framework-Specific Guidelines:


Web Resources: