Hartmut Pfarr
Hartmut Pfarr

Reputation: 6139

PyCharm Django Console good for performing manage.py tasks?

There is a PyCharm Django Console. Am I allowed to run manage.py things in that console, too? What syntax I do enter to e.g. perform

python manage.py syncdb

in the django console?

Upvotes: 0

Views: 4206

Answers (1)

George Stocker
George Stocker

Reputation: 57907

You don't actually run it the way you're thinking. To run the manage.py tasks in PyCharm, you do the following:

  1. On the main menu, choose Tools | Run manage.py task, or press Alt R.
  2. In the Enter manage.py task name dialog box, start typing the desired task name. As you type, the suggestion list shrinks to show the matching tasks only.

    Note that on typing an asterisk, PyCharm displays the complete list of available tasks.

  3. Select the desired task.
  4. Press Enter to start the task.
This was found on PyCharm's website.

Upvotes: 1

Related Questions