View the model dependency diagram
Available only in PyCharm Professional: download to try or compare editions
This functionality relies on the Django plugin, which is bundled and enabled in PyCharm by default. If the relevant features are not available, make sure that you did not disable the plugin.
Press to open settings and then select Plugins.
Open the Installed tab, find the Django plugin, and select the checkbox next to the plugin name.
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
SQLAlchemy

Do one of the following:
From the context menu of the Project tool window, or the editor, point to Diagrams, and choose Show Diagram or Show Diagram Pop-up.
Press , or .
Select the type of diagram from the popup:
tip
If you invoke Model Dependency diagram for a specific model, the diagram will open with the model centered and having the focus, and zoomed to actual size.
Select elements.
Change diagram layout.
Change diagram scale.
Navigate to source code.