docs: Exemplify a Django app debug configuration (#53545)
Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A --------- Co-authored-by: Finn Evers <finn.evers@outlook.de>
This commit is contained in:
1 parent
caff6630b8
commit
76ad327402
1 file changed
+31
@@ -398,6 +398,37 @@ requirements.txt
|
||||
|
||||
These can be combined to tailor the experience for web servers, test runners, or custom scripts.
|
||||
|
||||
#### Debug a Django App
|
||||
|
||||
For projects using Django with a structure similar to the following:
|
||||
|
||||
```
|
||||
my_django_project/
|
||||
manage.py
|
||||
…
|
||||
my_django_app/
|
||||
migrations/
|
||||
templates/
|
||||
models.py
|
||||
urls.py
|
||||
…
|
||||
```
|
||||
|
||||
…the following configuration can be used:
|
||||
|
||||
```json [debug]
|
||||
[
|
||||
{
|
||||
"label": "Python: Django",
|
||||
"adapter": "Debugpy",
|
||||
"request": "launch",
|
||||
"program": "manage.py",
|
||||
"args": ["runserver"],
|
||||
"django": true
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
Issues with Python in Zed typically involve virtual environments, language servers, or tooling configuration.
|
||||
|
||||
Reference in new issue
Block a user