File tree Expand file tree Collapse file tree 3 files changed +45
-22
lines changed Expand file tree Collapse file tree 3 files changed +45
-22
lines changed Original file line number Diff line number Diff line change
1
+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2
+ // README at: https://github.com/devcontainers/templates/tree/main/src/python
3
+ {
4
+ "name" : " Python VS Code Django Tutorial" ,
5
+ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6
+ "image" : " mcr.microsoft.com/devcontainers/python:1-3.12-bullseye" ,
7
+
8
+ // Features to add to the dev container. More info: https://containers.dev/features.
9
+ // "features": {},
10
+
11
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
12
+ // "forwardPorts": [],
13
+
14
+ // Use 'postCreateCommand' to run commands after the container is created.
15
+ "postCreateCommand" : " pip3 install --user -r requirements.txt" ,
16
+
17
+ // Configure tool-specific properties.
18
+ "customizations" : {
19
+ "vscode" : {
20
+ "extensions" : [
21
+ " ms-python.python" ,
22
+ " ms-python.black-formatter" ,
23
+ " ms-python.vscode-pylance" ,
24
+ " charliermarsh.ruff" ,
25
+ " ms-python.debugpy"
26
+ ]
27
+ }
28
+ }
29
+
30
+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
31
+ // "remoteUser": "root"
32
+ }
Original file line number Diff line number Diff line change
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for more information:
4
+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+ # https://containers.dev/guide/dependabot
6
+
7
+ version : 2
8
+ updates :
9
+ - package-ecosystem : " devcontainers"
10
+ directory : " /"
11
+ schedule :
12
+ interval : weekly
Original file line number Diff line number Diff line change 4
4
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
5
"version" : " 0.2.0" ,
6
6
"configurations" : [
7
- {
8
- "name" : " Python: Current File (Integrated Terminal)" ,
9
- "type" : " python" ,
10
- "request" : " launch" ,
11
- "program" : " ${file}" ,
12
- "console" : " integratedTerminal"
13
- },
14
- {
15
- "name" : " Python: Attach" ,
16
- "type" : " python" ,
17
- "request" : " attach" ,
18
- "port" : 5678 ,
19
- "host" : " localhost"
20
- },
21
7
{
22
8
"name" : " Python: Django" ,
23
- "type" : " python " ,
9
+ "type" : " debugpy " ,
24
10
"request" : " launch" ,
25
11
"program" : " ${workspaceFolder}/manage.py" ,
26
12
"console" : " integratedTerminal" ,
30
16
" --nothreading"
31
17
],
32
18
"django" : true
33
- },
34
- {
35
- "name" : " Python: Current File (External Terminal)" ,
36
- "type" : " python" ,
37
- "request" : " launch" ,
38
- "program" : " ${file}" ,
39
- "console" : " externalTerminal"
40
19
}
41
20
]
42
21
}
You can’t perform that action at this time.
0 commit comments