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.
Woops, got it, you add them to Additional options
under the host/port.
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With