PyCharm 4.0.0 Web Help

PyCharm makes it possible to easily navigate between templates and views, using the gutter icons, or Navigate | Related File command.

To navigate from a view to a template
  1. Open views.py file in the editor.
  2. Do one of the following:
    • Click the gutter icon next to the desired function:

      python_jumpToTemplate

    • On the main menu, choose Navigate | Related File, or just press Ctrl+Alt+HomeCtrl+Alt+HomeCtrl+Alt+HomeCtrl+Alt+HomeCtrl+Alt+HomeCtrl+Alt+HomeCtrl+Alt+HomeCtrl+Alt+HomeControl ⌘ UpAlt ⌘ HomeControl ⌘ Up.
To navigate from a template to the referencing view
  1. Open the desired template file in the editor.
  2. Do one of the following:
    • Click the gutter icon:

      python_jumpToView

    • On the main menu, choose Navigate | Related File, or just press Ctrl+Alt+HomeCtrl+Alt+HomeCtrl+Alt+HomeCtrl+Alt+HomeCtrl+Alt+HomeCtrl+Alt+HomeCtrl+Alt+HomeCtrl+Alt+HomeControl ⌘ UpAlt ⌘ HomeControl ⌘ Up.

Tip

If there are more related files (for example, a view and a style sheet), select the desired target from the pop-up that appears:

py_gotoRelated

See Also

Procedures:

Web Resources: