PyCharm 2024.1 Help

Run tasks of

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.


With PyCharm, you can run Django's utility from within the IDE. Tasks of this utility are executed in the buit-in terminal.

Running tasks is available for both local and remote interpreters.

Configuring utility

It's important to note that configuration of the utility is done in the Django page of the Settings dialog.

Configure the utility

  1. In the Settings dialog (Ctrl+Alt+S) under the Languages and Frameworks node, click Django.

  2. In the tasks section, specify the following:

    • In the field Manage script, specify the desired script.

      Note that by default PyCharm shows the script that resides under the Django project root. If you are not happy with this suggestion, you can choose any other script by clicking the browse button the Browse button.

    • In the Environment variables field, specify the environment variables to be passed to the script. By default, this field is empty.

      Click the browse button the Browse button to open the Environment Variables dialog. Use the toolbar buttons to make up the list of variables.

      If you want to see the system environment variables, click Show link in this dialog.

Running utility

To run a task of the utility

  1. Do one of the following:

    • In the main menu, go to Tools | Run task

    • Press Ctrl+Alt+R

    • Open the terminal (Alt+F12), click New Predefined Session in the Terminal tool window toolbar and select

    Opening in the terminal

    The utility starts in a terminal tab.

  2. Type the name of the desired task.

Executing tasks

When running tasks in the terminal, you can use the following features:

Last modified: 28 March 2024