Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pass arguments to PyCharm custom admin commands

Tags:

django

pycharm

I'm testing out PyCharm and I bumped into an odd problem where I can't specify arguments to my custom admin commands. In the Run/Debug Configurations I added a runserver configuration, cleared the port and checked the Custom run command and added the name of my command.

That works fine, but when trying to run it with arguments such as my_command 100 the console prints out Unknown command: 'my_command 100' which seems to happen when I run it manually adding quotes around the whole command.

Anyone knows where I can specify the arguments?

Thanks.

like image 630
Yeray Diaz Avatar asked Jan 28 '14 15:01

Yeray Diaz


2 Answers

Woops, got it, you add them to Additional options under the host/port.

like image 147
Yeray Diaz Avatar answered Oct 27 '22 01:10

Yeray Diaz


I ran into this issue when trying to change the runserver to runserver_plus from django-extensions so that I can run with SSL turned on.

This works:

pycharm and runserver_plus

like image 37
David Dehghan Avatar answered Oct 27 '22 00:10

David Dehghan