from django.urls import path
from . import views
from . views import UserPostListView, PostDetailView, PostDeleteview, PostCreateView, PostUpdateView,CommentUpdateView, VideoCreateView, video_update

urlpatterns = [
    path('',views.base, name='base'),
    path('login',views.login, name='login'),
    path('register',views.register, name='register'),
    path('index',views.index, name='index'),
    path('logout',views.logout, name='logout'),
    path('like_post', views.like_post, name='like_post'),
    path('find_friends',views.find_friends, name='find_friends'),
    path('profile',views.profile, name='profile'),

    path('profile_update', views.profile_update, name='profile_update'),
    path('user/<str:username>', UserPostListView.as_view(), name='user_posts'),
    path('post/<int:pk>/',PostDetailView.as_view(), name='post_details' ),
    path('post/<int:pk>/delete/',PostDeleteview.as_view(), name='post_delete' ),
    
    path('profile_posts',views.profile_posts, name='profile_posts'),
    path('results',views.results, name='results'),
    path('post/new/',PostCreateView.as_view(), name='post-create' ),
    path('post_update',views.post_update, name='post_update'),
    path('post/<int:pk>/update',PostUpdateView.as_view(), name='post-update' ),
    path('profile_photos',views.profile_photos, name='profile_photos'),
    
    path('comment_update/<int:id>',views.comment_update, name='comment_update'),
    path('comment/<int:pk>/update',CommentUpdateView.as_view(), name='comment-update' ),
    path('delete/<int:id>',views.delete, name='delete'),

    path('favourite',views.favourite, name='favourite'),
    path('favourite_posts',views.favourite_posts, name='favourite_posts'),

    path('video/new/',VideoCreateView.as_view(), name='video-create' ),
    path('post/<int:pk>/video',video_update.as_view(), name='video_update' ),

    # path('<str:username>',views.userprofile, name='userprofile'),
    path('video_posts',views.video_posts, name='video_posts'),

    path('user_videos',views.user_videos,name='user_videos'),

    
    


]


[((6, 4, 6, 36), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((7, 4, 7, 43), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((8, 4, 8, 52), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((9, 4, 9, 43), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((10, 4, 10, 46), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((11, 4, 11, 56), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((12, 4, 12, 64), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((13, 4, 13, 49), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((15, 4, 15, 71), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((20, 4, 20, 67), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((21, 4, 21, 49), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((23, 4, 23, 61), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((25, 4, 25, 70), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((27, 4, 27, 79), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((29, 4, 29, 55), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((31, 4, 31, 55), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((32, 4, 32, 73), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((38, 4, 38, 61), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n'), ((40, 4, 40, 60), 'django.urls.path', 'path', (), '', False, 'from django.urls import path\n')]