feat(main): commit

This commit is contained in:
2026-03-08 16:48:58 -04:00
parent 567766eaed
commit f37382d2b8
29 changed files with 3735 additions and 223 deletions

View File

@@ -128,3 +128,6 @@ AUTH_USER_MODEL = 'core.AppUser'
# https://docs.djangoproject.com/en/6.0/howto/static-files/
STATIC_URL = "static/"
# YouTube video cache directory (used by core.services.youtube and cache_upcoming command)
MEDIA_ROOT = env('MEDIA_ROOT', default='/tmp/pytv_cache')

View File

@@ -17,9 +17,14 @@ Including another URLconf
from django.contrib import admin
from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from api.api import api
urlpatterns = [
path("admin/", admin.site.urls),
path("api/", api.urls),
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)