First time here? Check out the FAQ!
1

django project debug

I created a django project but I need to debug some management commands which are outside of django and thereofre nee to be ran with python3 -m mycmmand. Can I create a launch configuration for this command?

piscvau's avatar
526
piscvau
asked 2021-09-13 03:16:08 -0600
Wingware Support's avatar
4.2k
Wingware Support
updated 2021-09-13 09:11:56 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Yes, create a Named Entry Point from the Debug menu and selected the Named Module option.

Alternatively, open the file to run, right click and select Properties, then under Debug/Execute in Environment select the Launch with python -m option. Then debugging that file will launch it as if launched with -m. Using a Named Entry Point probably makes more sense, though, in most cases.

Wingware Support's avatar
4.2k
Wingware Support
answered 2021-09-13 09:11:49 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer