Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm: How to run syncdb and sql commands?

Tags:

django

pycharm

When working with Django you can sync the database like this:

python manage.py syncdb

and also check the created SQL like this:

python manage.py sql bookmarks

How do I do the above thorugh the PyCharm IDE instead of the terminal?

Thanks,

like image 603
Houman Avatar asked May 06 '12 14:05

Houman


2 Answers

Tools | Run manage.py Task...: enter image description here

like image 80
CrazyCoder Avatar answered Oct 12 '22 05:10

CrazyCoder


Take the instructions for running the test suite and modify it for you own commands. Also, see the generic setup guide.

like image 44
Sam Dolan Avatar answered Oct 12 '22 04:10

Sam Dolan