PyCharm 3.1.0 Web Help

Some features described here are available in Professional edition only.

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

2.6+

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 Command UShift Alt Command UShift Alt Command U, or Ctrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UCtrl+Alt+UAlt Command UAlt Command UAlt Command U.
  2. Select the type of diagram from the pop-up window:

    py_select_diagram_type

Tip

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

Tip

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

Concepts:

Language and Framework-Specific Guidelines:

Reference:

Web Resources: