Skip to content

Commit a0a3ceb

Browse files
authored
Fix the Django Example (#1184)
## Summary 1. Updates python + pip package versions to align with stdenv (maybe?) 2. Install pip packages using [pep517](https://peps.python.org/pep-0517/) ## How was it tested? Tested in Devbox Cloud https://github.com/jetpack-io/devbox/?branch=jl/django-fix&folder=examples/stacks/django (Wow what a handy feature)
1 parent a84602c commit a0a3ceb

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

examples/stacks/django/devbox.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"packages": [
3-
"python310",
3+
"python@latest",
4+
"python311Packages.pip@latest",
45
"openssl@latest",
5-
"python310Packages.pip",
66
"postgresql@latest"
77
],
88
"env": {
@@ -11,7 +11,7 @@
1111
"shell": {
1212
"init_hook": [
1313
". $VENV_DIR/bin/activate",
14-
"pip install -r requirements.txt"
14+
"pip install -r requirements.txt --use-pep517"
1515
],
1616
"scripts": {
1717
"create_db": [

examples/stacks/django/devbox.lock

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,21 @@
88
},
99
"postgresql@latest": {
1010
"last_modified": "2023-05-01T16:53:22Z",
11-
"plugin_version": "0.0.1",
11+
"plugin_version": "0.0.2",
1212
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#postgresql",
1313
"version": "14.7"
1414
},
15-
"python310": {
15+
"python311Packages.pip@latest": {
16+
"last_modified": "2023-05-01T16:53:22Z",
1617
"plugin_version": "0.0.1",
17-
"resolved": "github:NixOS/nixpkgs/f80ac848e3d6f0c12c52758c0f25c10c97ca3b62#python310"
18+
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#python311Packages.pip",
19+
"version": "23.0.1"
1820
},
19-
"python310Packages.pip": {
21+
"python@latest": {
22+
"last_modified": "2023-05-01T16:53:22Z",
2023
"plugin_version": "0.0.1",
21-
"resolved": "github:NixOS/nixpkgs/f80ac848e3d6f0c12c52758c0f25c10c97ca3b62#python310Packages.pip"
24+
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#python311",
25+
"version": "3.11.3"
2226
}
2327
}
24-
}
28+
}

0 commit comments

Comments
 (0)