{ "folders": [ { "path": "." } ], "launch": { "version": "0.2.0", "configurations": [ { "name": "Run Django Server", "type": "debugpy", "request": "launch", "program": "${workspaceFolder}/manage.py", "args": ["runserver"], "django": true, "console": "integratedTerminal", "envFile": "${workspaceFolder}/.env" }, { "name": "Launch Chrome", "type": "chrome", "request": "launch", "url": "http://127.0.0.1:8000", // adjust based on your local server "webRoot": "${workspaceFolder}", "sourceMaps": true, "trace": true }, { "name": "Debug: Import 2014-2019.csv", "type": "debugpy", "request": "launch", "program": "${workspaceFolder}/manage.py", "args": ["import_legacy", "./data/2014-2019.csv"], "django": true, "console": "integratedTerminal" } ], "compounds":[{ "name": "Django + Chrome", "configurations": ["Run Django Server", "Launch Chrome"], "type": "compound" }] }, "tasks": { "version": "2.0.0", "tasks": [ { "label": "🗑️ Delete all Movies", "type": "shell", "command": "${config:python.defaultInterpreterPath}", "args": [ "manage.py", "shell", "-c", "from boxofficefantasy.models import Movie; Movie.objects.all().delete()" ], "group": "build", "problemMatcher": [] }, { "label": "Import 2014-2019.csv", "type": "shell", "command": "${config:python.defaultInterpreterPath}", "args": ["manage.py", "import_legacy", "./data/2014-2019.csv"], "problemMatcher": [] }, { "label": "📦 Make Migrations", "type": "shell", "command": "${config:python.defaultInterpreterPath}", "args": ["manage.py", "makemigrations"], "group": "build", "problemMatcher": [] }, { "label": "🔄 Apply Migrations", "type": "shell", "command": "${config:python.defaultInterpreterPath}", "args": ["manage.py", "migrate"], "group": "build", "problemMatcher": [] }, { "label": "Import ", "type": "shell", "command": "${config:python.defaultInterpreterPath}", "args": ["manage.py", "migrate"], "group": "build", "problemMatcher": [] }, { "label": "📦 🔄 Make & Apply Migratations", "dependsOn": ["📦 Make Migrations", "🔄 Apply Migrations"], "dependsOrder": "sequence", "problemMatcher": [], "group": { "kind": "build", "isDefault": true } } ] }, "settings": { "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python", "[python]": { "editor.defaultFormatter": "ms-python.black-formatter" }, "[django-html]": { "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.quickSuggestions": { "other": true, "comments": true, "strings": true } }, "files.associations": { "*.dj.html": "django-html" }, "emmet.includeLanguages": { "django-html": "html" } } }