IntelliJ IDEA 2018.1 Help

Running Tasks of Utility

This feature is only supported in the Ultimate edition.

The following is only valid when Python Plugin is installed and enabled!


With IntelliJ IDEA, 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 facet page of the Project Structure dialog.

To configure utility, follow these steps

  1. In the Project Structure dialog, click the module with Python support, and add Django facet.
  2. Click the Django facet.
  3. In the tasks section, specify the following:
    • In the field Manage script, specify the desired script.
      Note that by default IntelliJ IDEA 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 browseButton.
    • 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 browseButton 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.

    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

IntelliJ IDEA 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:

py managepy error
Last modified: 7 February 2018

See Also


External Links: