feat(main): main
This commit is contained in:
@@ -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'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user