diff --git a/containers/python-3-postgres/.vscode/launch.json b/containers/python-3-postgres/.vscode/launch.json index 5388c043ab..4ab6df1475 100644 --- a/containers/python-3-postgres/.vscode/launch.json +++ b/containers/python-3-postgres/.vscode/launch.json @@ -16,7 +16,8 @@ "--noreload", "--nothreading" ], - "django": true + "django": true, + "preLaunchTask": "pip install" } ] -} \ No newline at end of file +} diff --git a/containers/python-3-postgres/.vscode/tasks.json b/containers/python-3-postgres/.vscode/tasks.json new file mode 100644 index 0000000000..a825a975c3 --- /dev/null +++ b/containers/python-3-postgres/.vscode/tasks.json @@ -0,0 +1,10 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "pip install", + "type": "shell", + "command": "pip install -r ./test-project/requirements.txt" + } + ] +} diff --git a/containers/python-3-postgres/requirements.txt b/containers/python-3-postgres/requirements.txt deleted file mode 100644 index a2870a734f..0000000000 --- a/containers/python-3-postgres/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -Django -psycopg2-binary \ No newline at end of file diff --git a/containers/python-3-postgres/test-project/requirements.txt b/containers/python-3-postgres/test-project/requirements.txt index eec1cf15d5..a2870a734f 100644 --- a/containers/python-3-postgres/test-project/requirements.txt +++ b/containers/python-3-postgres/test-project/requirements.txt @@ -1 +1,2 @@ -Django \ No newline at end of file +Django +psycopg2-binary \ No newline at end of file