Skip to content

Commit 0075324

Browse files
committed
Changes for staticfiles
1 parent e107bce commit 0075324

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ services:
2525
- "/data/application-data/speech-db/okimasis-bios:/app/data/okimasis-bios"
2626
- "/data/application-data/speech-db/rw_doc.txt:/app/private/rw_doc.txt"
2727
- "/data/application-data/speech-db/tsuutina-recordings-2025:/app/private/tsuutina-recordings-2025"
28+
post_start:
29+
- command: ["sh", "-c", "/app/.venv/bin/python3", "/app/manage.py", "collectstatic", "--no-inputs"]

validation/urls.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
from django.urls import path
2121
from django.views.generic import TemplateView
22+
from django.conf.urls.static import static
23+
from django.conf import settings
2224

2325
from . import views
2426

@@ -143,4 +145,4 @@
143145
template_name="validation/robots.txt", content_type="text/plain"
144146
),
145147
),
146-
]
148+
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

0 commit comments

Comments
 (0)