Last active
August 12, 2024 12:55
-
-
Save slaveofcode/b4c18efc99c16029913cde3fd2dba3ce to your computer and use it in GitHub Desktop.
Sample Django Configuration launch.json VSCode (Visual Studio Code)
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", | |
"type": "python", | |
"request": "launch", | |
"stopOnEntry": false, | |
"pythonPath": "${workspaceRoot}/venv/bin/python3.4", | |
"program": "${workspaceRoot}/manage.py", | |
"args": [ | |
"runserver", | |
"1818" | |
], | |
"debugOptions": [ | |
"WaitOnAbnormalExit", | |
"WaitOnNormalExit", | |
"RedirectOutput", | |
"DjangoDebugging" | |
], | |
"env": { | |
"DJANGO_DB_NAME": "aroounddb", | |
"DJANGO_DB_USER": "codeslave", | |
"DJANGO_DB_PASSWORD": "codeslave", | |
"DJANGO_DB_HOST": "172.17.0.2", | |
"DJANGO_DB_PORT": "5432", | |
"DJANGO_DEBUG": "True", | |
"DJANGO_SETTINGS_MODULE": "settings" | |
} | |
}, | |
] | |
} |
CMIIW, small correction for "pythonPath" isn't exist. It should be "python".
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you this was of great help