PyCharm 2024.1 Help

Navigate to implementing blocks of templates

Enable the Django plugin

This functionality relies on the Django plugin, which is bundled and enabled in PyCharm by default. If the relevant features aren't available, make sure that you didn't disable the plugin.

  1. Press Ctrl+Alt+S to open the IDE settings and then select Plugins.

  2. Open the Installed tab, find the Django plugin, and select the checkbox next to the plugin name.

Introduction

If a template extends another template, PyCharm provides the possibility to navigate from the blocks in a base template to the implementing templates by using the gutter icons Implemented template gutter icon.

the block is inherited

Jumping to an implementing block

To navigate from a block in an extended template to the implementing block

  1. Open for editing the desired base template.

  2. Select the block, and click the gutter icon Implemented template gutter icon.

  3. If a single implementation block is encountered, PyCharm navigates directly to this block.

    If more than one template implements same base template, choose the target from the popup menu:

    go to an implementing block

    The implementing template opens in the editor, with the caret at the name of the block.

Last modified: 05 April 2024