PyCharm 5.0 Help

Running Tasks of Utility

In this section:


With PyCharm, you can run Django utility from within the IDE. Each task of this utility is executed in the Manage.Py 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 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 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, 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: 5 November 2015