Closed
Description
Refs: #161
Complexity: 3
Automatically detect a Django file, and show it.
Steps
- Open a Django Project if you already have one or you can also create one following the steps in the Django Tutorial.
- Head over to the Run And Debug tab, and click on create a launch.json file.

- A window will open with a list of options, choose Python Debugger > Django.
Verification
- Valid django file
- Verifies that your
manage.py
file was found correctly and is displayed in the list. - When you hover the item, verify that there is a button to open the file and that it works correctly.
- Select this option and verify that a launch.json configuration is created with the choose option.
- Verifies that your
- Invalid django file (you can delete or change the name of the file)
- Since no file was found, verify that a Default option is displayed.
- Select this option and verify that a launch.json configuration is created with the choose option.
- Browse a file
- Click on the option
Browse Files...
and select the file that you want. - Verify that a launch.json configuration is created with the choose option, and that the path has been parsed correctly.
- Click on the option
- Add own value
- You can also include your own text, type a path in the input box and press enter.
- Verify that a launch.json configuration is created with the choose option.
Notes
Django's application detection works by looking for the manage.py
/app.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.