diff --git a/.gitignore b/.gitignore index 12fea24..c051866 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,6 @@ postgres-hstore/ docker-compose.override.yml build_static .venv -.vscode __pycache__ diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..e6f2364 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "ms-vscode-remote.remote-containers" + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..6cc7c2a --- /dev/null +++ b/.vscode/launch.json @@ -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 + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..70a2f9b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "[python]": { + "editor.defaultFormatter": "ms-python.black-formatter" + }, +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..12d4aeb --- /dev/null +++ b/.vscode/tasks.json @@ -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" + } + ] +}