feat(main): main

This commit is contained in:
2026-03-10 08:39:28 -04:00
parent b1a93161c0
commit af3076342a
18 changed files with 826 additions and 38 deletions

View File

@@ -26,5 +26,11 @@ urlpatterns = [
path("api/", api.urls),
]
from api.views import serve_video_with_range
from django.urls import re_path
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
# Use custom range-aware server for media files, enabling HTML5 Video seek
urlpatterns += [
re_path(r'^media/(?P<path>.*)$', serve_video_with_range, name='media'),
]