docs: Exemplify a Django app debug configuration (#53545)
Pablo Soares
and
Finn Evers
created
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>
@@ -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.