Skip to content

Commit f9d2211

Browse files
video PoC
1 parent 542a1de commit f9d2211

10 files changed

Lines changed: 2866 additions & 11 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"features": {
3+
"ghcr.io/stu-bell/devcontainer-features/node:0": {
4+
"version": "0.5.2",
5+
"resolved": "ghcr.io/stu-bell/devcontainer-features/node@sha256:044479bdbf55bf9191f6bea70306818c7669259f6962add77af2ff7d93658541",
6+
"integrity": "sha256:044479bdbf55bf9191f6bea70306818c7669259f6962add77af2ff7d93658541"
7+
},
8+
"ghcr.io/va-h/devcontainers-features/uv:1": {
9+
"version": "1.1.4",
10+
"resolved": "ghcr.io/va-h/devcontainers-features/uv@sha256:a15737142539d150ef4d358e2d6a7424a0a2f3dc43b29a3aa1b50162a8b11bc1",
11+
"integrity": "sha256:a15737142539d150ef4d358e2d6a7424a0a2f3dc43b29a3aa1b50162a8b11bc1"
12+
}
13+
}
14+
}

.devcontainer/devcontainer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
"vscode": {
3636
"extensions": [
3737
"ms-python.python",
38-
"ms-python.vscode-pylance",
39-
"openai.chatgpt"
38+
"ms-python.vscode-pylance"
4039
]
4140
}
4241
},

.devcontainer/docker-compose.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ services:
77
dockerfile: .devcontainer/Dockerfile
88
volumes:
99
- ..:/workspace:delegated
10-
- openai-chatgpt:/home/vscode/.config/Code/User/globalStorage/openai.chatgpt
11-
- codex-config:/home/vscode/.codex
1210
command: sleep infinity
1311
depends_on:
1412
- db
@@ -46,6 +44,4 @@ services:
4644
- "6379:6379"
4745

4846
volumes:
49-
openai-chatgpt:
50-
codex-config:
5147
postgres-data:

.devcontainer/entrypoint.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ ensure_owned() {
1717
}
1818

1919
if [ -d /home/vscode ]; then
20-
ensure_owned /home/vscode/.codex
2120
ensure_owned /home/vscode/.config/Code/User/globalStorage
22-
ensure_owned /home/vscode/.config/Code/User/globalStorage/openai.chatgpt
2321
fi
2422

2523
exec "$@"

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.terminal.activateEnvironment": false
3+
}

webapp/core/urls.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1616
"""
1717
from django.conf import settings
18-
from django.conf.urls.static import static
18+
from django.contrib.auth.decorators import login_not_required
1919
from django.contrib import admin
20-
from django.urls import path, include
20+
from django.urls import path, include, re_path
21+
from django.views.static import serve as static_serve
2122

2223
from media_library import views as ml_views
2324

@@ -37,4 +38,10 @@
3738
]
3839

3940
if settings.DEBUG:
40-
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
41+
urlpatterns += [
42+
re_path(
43+
r'^media/(?P<path>.*)$',
44+
login_not_required(static_serve),
45+
{'document_root': settings.MEDIA_ROOT},
46+
),
47+
]

0 commit comments

Comments
 (0)