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