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 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.
- 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+OCommand F12Command F12Command 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.