Last active
December 18, 2023 23:40
-
-
Save titusfx/01f6042d4d2a8ba09201e0dafaabb00b to your computer and use it in GitHub Desktop.
Django configuration to Debug built in commands and Custom ones on VSCode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ { | |
"name": "Django Command", | |
"type": "python", | |
"request": "launch", | |
"program": "${workspaceFolder}/manage.py", | |
"args": [ | |
"${input:commandToRun}", | |
], | |
"justMyCode": false | |
}, | |
{ | |
"name": "Python: Django", | |
"type": "python", | |
"request": "launch", | |
"program": "${workspaceFolder}/manage.py", | |
"args": [ | |
"runserver" | |
], | |
"django": true | |
}, { | |
"name": "Django Debug Current Command File", | |
"type": "python", | |
"request": "launch", | |
"program": "${workspaceFolder}/manage.py", | |
"args": [ | |
"${fileBasenameNoExtension}" | |
] | |
}, { | |
"name": "Django startproject Command", | |
"type": "python", | |
"request": "launch", | |
"program": "${workspaceFolder}/manage.py", | |
"args": [ | |
"startproject", | |
"restaurants" | |
], | |
"justMyCode": false | |
}, | |
], | |
"inputs": [{ | |
"id": "commandToRun", | |
"description": "Select client or server", | |
"type": "pickString", | |
"options": [ | |
"runserver", | |
"startapp", | |
"changepassword", | |
"createsuperuser", | |
"startprojects", | |
"A CUSTOM COMMAND", | |
"remove_stale_contenttypes", | |
"check", | |
"compilemessages", | |
"createcachetable", | |
"dbshell", | |
"diffsettings", | |
"dumpdata", | |
"flush", | |
"inspectdb", | |
"loaddata", | |
"makemessages", | |
"makemigrations", | |
"migrate", | |
"sendtestemail", | |
"shell", | |
"showmigrations", | |
"sqlflush", | |
"sqlmigrate", | |
"sqlsequencereset", | |
"squashmigrations", | |
"test", | |
"testserver", | |
"register_models_admin", | |
"clearsessions", | |
"collectstatic", | |
"findstatic" | |
], | |
"default": "runserver" | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment