from django.urls import path
from . import views
from django.contrib.staticfiles.urls import static, staticfiles_urlpatterns
from danone_project import settings
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    path('', views.landing_page, name='landing_page'),
    path('video_list/', views.video_list, name='video_list'),
    path('video/<slug:slug>/', views.video_page, name='video_detail'),
    path('post_test_button/', views.post_test_button, name='post_test_button'),
    path('logout/', views.logout_view, name='logout'),  # Logout URL
]

if settings.DEBUG:
    urlpatterns += staticfiles_urlpatterns()
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
    urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)