Skip to content

Test: Implement automatic configuration for Django #19546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
paulacamargo25 opened this issue Jul 25, 2022 · 0 comments
Closed
3 tasks done

Test: Implement automatic configuration for Django #19546

paulacamargo25 opened this issue Jul 25, 2022 · 0 comments

Comments

@paulacamargo25
Copy link

paulacamargo25 commented Jul 25, 2022

Refs: #19304

Complexity: 3

Create Issue


Automatically detect a Django application and run it with the correct Debug Configuration.

Steps

  1. Open a Django Project if you already have one or you can also create one following the steps in the Django Tutorial.
  2. Head over to the Run And Debug tab, and click on Show all automatic debug configurations.

Screen Shot 2022-07-25 at 2 09 44 PM

  1. A window will open with a list of options, choose Python.
  2. You should now see a list of debug options, and there should be the Django option. Click it and the application should run.

Verification

  1. Make sure that the application has been executed correctly, you can put some breakpoints, to test that the debugging works.
  2. If you repeat the steps and instead of clicking the option, you click the wheel, it should open the launch.json file with the configuration prefilled. Make sure this is correct and can be debugged.
  3. Another form to show the automatic configuration is typing 'debug ' (with a space) in Quick open (⌘P) or by triggering the Debug: Select and Start Debugging command. Test that the Django Debugging recognition works here too.

Notes

Django's application detection works by looking for the manage.py file in the root or in a subdirectory just one level lower. So you can try moving the manage.py file one level lower and check that it still appears.

@paulacamargo25 paulacamargo25 added this to the July 2022 milestone Jul 25, 2022
@alexr00 alexr00 removed their assignment Jul 26, 2022
@sbatten sbatten removed their assignment Jul 26, 2022
@karthiknadig karthiknadig removed their assignment Jul 27, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants