Skip to content

Instantly share code, notes, and snippets.

@ShawonAshraf
Forked from slaveofcode/django-launch.json
Created November 22, 2016 18:44
Show Gist options
  • Save ShawonAshraf/16ef1fc0e0b8f2e371fcd69abddeab02 to your computer and use it in GitHub Desktop.
Save ShawonAshraf/16ef1fc0e0b8f2e371fcd69abddeab02 to your computer and use it in GitHub Desktop.
Sample Django Configuration launch.json VSCode (Visual Studio Code)
{
"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"
}
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment