PyCharm 2017.1 Help

Running Tasks of Utility

This feature is supported in the Professional edition only.

In this section:


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/Preferences dialog .

To configure utility, follow these steps

  1. Open the Settings/Preferences dialog, and then under 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 /help/img/idea/2017.1/browseButton.png.
    • 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 /help/img/idea/2017.1/browseButton.png to open the Environment Variables dialog box. 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 box.

Running utility

To run a task of the utility

  1. On the main menu, choose Tools | Run task , or press Ctrl+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:

Handling error

PyCharm smartly handles errors. When your Django project can't run due to an error, this error displays in the console instead of the command line:


See Also


External Links:

Last modified: 26 July 2017