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
- Do one of the following:
- On the main menu, choose .
- On the context menu of the Project tool window, or the editor, point to , and choose or .
- 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.
- 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.
- Select elements.
- Add notes, delete elements.
- Change diagram layout.
- Change diagram scale.
- Navigate to source code.
- Navigate through the models using the Structure view (Ctrl+F12Ctrl+F12Ctrl+0Ctrl+F12Ctrl+F12Ctrl+F12Ctrl+F12 or Ctrl+Shift+F12Ctrl+F3 or Ctrl+O⌘ F12⌘ F12⌘ O).
- Find usages of the selected node element.
- Invoke refactoring commands.
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.