diff --git a/boxofficefantasy.code-workspace b/boxofficefantasy.code-workspace index 5ed7551..50fae6b 100644 --- a/boxofficefantasy.code-workspace +++ b/boxofficefantasy.code-workspace @@ -7,6 +7,18 @@ "launch": { "version": "0.2.0", "configurations": [ + { + "name": "Debug current file with debugpy", + "type": "debugpy", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "justMyCode": false, + "args": [], + "env": { + "PYTHONPATH": "${workspaceFolder}" + } + }, { "name": "Run Django Server", "type": "debugpy", @@ -22,7 +34,7 @@ "type": "debugpy", "request": "launch", "module": "uvicorn", - "args": ["boxofficefantasy_project.asgi:application", "--reload",], + "args": ["boxofficefantasy_project.asgi:application", "--reload"], "django": true, "console": "integratedTerminal", "envFile": "${workspaceFolder}/.env" @@ -32,10 +44,7 @@ "type": "node", "request": "launch", "runtimeExecutable": "npm", - "args": [ - "run", - "dev" - ], + "args": ["run", "dev"], "cwd": "${workspaceFolder}/frontend", "console": "integratedTerminal", "internalConsoleOptions": "neverOpen" @@ -62,7 +71,11 @@ "compounds": [ { "name": "Django + Chrome + Webpack", - "configurations": ["Run Django Server", "Launch Chrome", "Start Webpack Dev Server"], + "configurations": [ + "Run Django Server", + "Launch Chrome", + "Start Webpack Dev Server" + ], "type": "compound" } ] @@ -152,7 +165,7 @@ "editor.defaultFormatter": "ms-python.black-formatter" }, "[django-html]": { - "editor.defaultFormatter": "monosans.djlint", + "editor.defaultFormatter": "monosans.djlint" }, "emmet.includeLanguages": { "django-html": "html" @@ -161,15 +174,13 @@ "*.dj.html": "django-html" }, "files.exclude": { - "**/__pycache__":true, - ".venv":false + "**/__pycache__": true, + ".venv": false }, - "auto-close-tag.activationOnLanguage": [ - "django-html" - ], + "auto-close-tag.activationOnLanguage": ["django-html"], "terminal.integrated.env.osx": { - "VSCODE_HISTFILE":"${workspaceFolder}/.venv/.term_history" - }, + "VSCODE_HISTFILE": "${workspaceFolder}/.venv/.term_history" + } // "html.autoClosingTags": true, } } diff --git a/boxofficefantasy/templates/base.dj.html b/boxofficefantasy/templates/base.dj.html index a8967f5..cd08ada 100644 --- a/boxofficefantasy/templates/base.dj.html +++ b/boxofficefantasy/templates/base.dj.html @@ -19,7 +19,7 @@ -
+