Ritu Singh
Problem:
In my Python project I have a module my_stuff.py which is active in my editor, but I want to execute the file main.py to run my project. -- Can I use launch.json for this?
I tried a simple config like this:
But this always wants to start the debugpy launcher. I would just like to launch the main file as
How can I do this with launch.json?
Solution:
Now you can configure >program in launch.json and then use Ctrl+F5 (Run Without Debugging)to execute the program. But essentially this still uses the debugger.
There was a feature request to configure the Run button, but it was closed due to insufficient votes.
There is also a related request open.
There is also a related SO question.
Suggested blogs:
>How to migrate `DateTimeField` to `DateField` in Django?
>Why VSCode indicate an error on using {{ }}?
>Fix the python-decouple issue in Django
>Address the N+1 problem in Django with prefetch
>How can I retrieve all customers' bookings by their username/ID?
>How to solve Static Files not being found in Django?
>How to format date-time input in Django?