Extra parameters to custom run command for django debugging.

For a while I've been using `runserver_plus` as a custom run command for django debugging. I'm working on the payment part of the app and I need to run under https. In a regular terminal window I can run `runserver_plus --cert-file cert.pem --key-file key.pem` no problem; this also works if I use the Tools/Run manage.py task...,. but when I try to expand the custom run command in the debug dialog to 'runserver_plus --cert-file cert.pem --key-file key.pem' I get an error.

Connected to pydev debugger (build 212.5457.59)
Unknown command: 'runserver_plus --cert-file cert.pem --key-file key.pem'
Type 'manage.py help' for usage.

Process finished with exit code 1

How do I get the debugger to accept the additional arguments?

1
5 comments

Hello, 

 

the following works for me: 

 

 

Do you have the same config? 

0

I do. I didn't understand that (additional) option.

Thanks very much.

0

I'm having this problem now with version 2024.1.4 Professional Edition

It works only at the terminal. I used the custom command options and the additional parameters as well.

 

My details: 

PyCharm 2024.1.4 (Professional Edition)
Build #PY-241.18034.82, built on June 24, 2024
Licensed to Martín Torre Castro
Runtime version: 17.0.11+1-b1207.24 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.1.0-21-amd64
GC: G1 Young Generation, G1 Old Generation
Memory: 1962M
Cores: 12
Registry:
 debugger.new.tool.window.layout=true
 ide.experimental.ui=true
Non-Bundled Plugins:
 com.jetbrains.space (241.18034.4)
 com.maxifom.pyenv-integration (0.0.2)
 com.intellij.plugins.eclipsekeymap (241.14494.150)
 com.intellij.ml.llm (241.18034.12)
 ru.meanmail.plugin.requirements (2022.4.1)
Current Desktop: XFCE
 

0

Hi @... , what is the error you see when running this configuration?

Would you kindly share a screenshot of your Django run configuration?

Please also share logs from Help | Collect Logs and Diagnostic Data after reproducing the error. Please upload it to https://uploads.services.jetbrains.com and let me know the upload ID.
 

0

I already fixed the whole thing. I had an error  in my Django config.

I'm sorry for the inconvenience.

0

Please sign in to leave a comment.