PyCharm 2023.3 Help

Run tasks of


With PyCharm, you can run Django utility from within the IDE. Each task of this utility is executed in the console.

Note that Run task command 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.

To configure utility, follow these steps

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

  2. In this page, choose the desired Django project.

  3. 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. Go to Tools | Run task or press Alt R.

    The utility starts in its own console.

  2. Type the name of the desired task.

Working in the utility console

In the console, one can:

Last modified: 15 November 2023