Compare commits

...

2 Commits

Author SHA1 Message Date
palid 4890db8585
devcontainer: properly ignore extensions signatures for devcontainer 2024-02-01 11:51:55 +01:00
palid c5c2ac43ba
dx: Un-ignore .vscode 2024-02-01 11:46:18 +01:00
6 changed files with 75 additions and 21 deletions

View File

@ -33,25 +33,23 @@
"customizations": { "customizations": {
"vscode": { "vscode": {
"settings": { "settings": {
"extensions": { "extensions.verifySignature": false
"verifySignature": false }
} },
}, "extensions": [
"settings.extensions.verifySignature": false, "ms-python.python",
"extensions": [ "mikestead.dotenv",
"ms-python.python", "VisualStudioExptTeam.vscodeintellicode",
"mikestead.dotenv", "ms-python.black-formatter",
"VisualStudioExptTeam.vscodeintellicode", "VisualStudioExptTeam.intellicode-api-usage-examples",
"ms-python.black-formatter", "ms-azuretools.vscode-docker",
"VisualStudioExptTeam.intellicode-api-usage-examples", "DavidAnson.vscode-markdownlint",
"ms-azuretools.vscode-docker", "yzhang.markdown-all-in-one"
"DavidAnson.vscode-markdownlint", ]
"yzhang.markdown-all-in-one"
]
}
} }
// Configure tool-specific properties. }
// "customizations": {}, // Configure tool-specific properties.
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. // "customizations": {},
// "remoteUser": "devcontainer" // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "devcontainer"
} }

1
.gitignore vendored
View File

@ -12,7 +12,6 @@ postgres-hstore/
docker-compose.override.yml docker-compose.override.yml
build_static build_static
.venv .venv
.vscode
__pycache__ __pycache__

5
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"recommendations": [
"ms-vscode-remote.remote-containers"
]
}

20
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,20 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Django",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": [
"runserver",
"0.0.0.0:8000",
],
"django": true,
"justMyCode": true
}
]
}

5
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
}

27
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,27 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "migrate",
"type": "shell",
"command": "${workspaceFolder}/manage.py migrate"
},
{
"label": "makemigrations",
"type": "shell",
"command": "${workspaceFolder}/manage.py makemigrations"
},
{
"label": "runserver",
"type": "shell",
"command": "${workspaceFolder}/manage.py runserver"
},
{
"label": "collectstatic",
"type": "shell",
"command": "${workspaceFolder}/manage.py collectstatic"
}
]
}