Skip to content

Instantly share code, notes, and snippets.

@D-Bits
Last active December 24, 2020 20:24
Show Gist options
  • Save D-Bits/769706795cf918bd4c838abdc186c7ba to your computer and use it in GitHub Desktop.
Save D-Bits/769706795cf918bd4c838abdc186c7ba to your computer and use it in GitHub Desktop.
A template for automate manage.py tasks with the VS Code task runner
{
"version": "2.0.0",
"tasks": [
{
"label": "Bootstrap Containers",
"type": "shell",
"command": "docker-compose up",
"problemMatcher": [
"$eslint-compact"
]
},
{
"label": "Shutdown Containers",
"type": "shell",
"command": "docker-compose down",
"problemMatcher": [
"$eslint-compact"
]
},
{
"label": "Make Migrations",
"type": "shell",
"command": "docker-compose",
"args": [
"exec",
"django",
"python",
"manage.py",
"makemigrations",
"users",
"project"
],
"problemMatcher": [
"$eslint-compact"
]
},
{
"label": "Migrate",
"type": "shell",
"command": "docker-compose",
"args": [
"exec",
"django",
"python",
"manage.py",
"migrate",
],
"problemMatcher": [
"$eslint-compact"
]
},
{
"label": "Bootstrap Django Dev Server",
"type": "shell",
"command": "docker-compose",
"args": [
"exec",
"django",
"python",
"manage.py",
"runserver",
],
"problemMatcher": [
"$eslint-compact"
]
},
{
"label": "Run Django Tests",
"type": "shell",
"command": "docker-compose",
"args": [
"exec",
"django",
"python",
"manage.py",
"test",
],
"problemMatcher": [
"$eslint-compact"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment