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'),

    
    


]


[((220, 253), 'django.urls.path', 'path', (['""""""', 'views.base'], {'name': '"""base"""'}), "('', views.base, name='base')\n", (224, 253), False, 'from django.urls import path\n'), ((258, 298), 'django.urls.path', 'path', (['"""login"""', 'views.login'], {'name': '"""login"""'}), "('login', views.login, name='login')\n", (262, 298), False, 'from django.urls import path\n'), ((303, 352), 'django.urls.path', 'path', (['"""register"""', 'views.register'], {'name': '"""register"""'}), "('register', views.register, name='register')\n", (307, 352), False, 'from django.urls import path\n'), ((357, 397), 'django.urls.path', 'path', (['"""index"""', 'views.index'], {'name': '"""index"""'}), "('index', views.index, name='index')\n", (361, 397), False, 'from django.urls import path\n'), ((402, 445), 'django.urls.path', 'path', (['"""logout"""', 'views.logout'], {'name': '"""logout"""'}), "('logout', views.logout, name='logout')\n", (406, 445), False, 'from django.urls import path\n'), ((450, 502), 'django.urls.path', 'path', (['"""like_post"""', 'views.like_post'], {'name': '"""like_post"""'}), "('like_post', views.like_post, name='like_post')\n", (454, 502), False, 'from django.urls import path\n'), ((508, 569), 'django.urls.path', 'path', (['"""find_friends"""', 'views.find_friends'], {'name': '"""find_friends"""'}), "('find_friends', views.find_friends, name='find_friends')\n", (512, 569), False, 'from django.urls import path\n'), ((574, 620), 'django.urls.path', 'path', (['"""profile"""', 'views.profile'], {'name': '"""profile"""'}), "('profile', views.profile, name='profile')\n", (578, 620), False, 'from django.urls import path\n'), ((626, 693), 'django.urls.path', 'path', (['"""profile_update"""', 'views.profile_update'], {'name': '"""profile_update"""'}), "('profile_update', views.profile_update, name='profile_update')\n", (630, 693), False, 'from django.urls import path\n'), ((940, 1004), 'django.urls.path', 'path', (['"""profile_posts"""', 'views.profile_posts'], {'name': '"""profile_posts"""'}), "('profile_posts', views.profile_posts, name='profile_posts')\n", (944, 1004), False, 'from django.urls import path\n'), ((1009, 1055), 'django.urls.path', 'path', (['"""results"""', 'views.results'], {'name': '"""results"""'}), "('results', views.results, name='results')\n", (1013, 1055), False, 'from django.urls import path\n'), ((1129, 1187), 'django.urls.path', 'path', (['"""post_update"""', 'views.post_update'], {'name': '"""post_update"""'}), "('post_update', views.post_update, name='post_update')\n", (1133, 1187), False, 'from django.urls import path\n'), ((1272, 1339), 'django.urls.path', 'path', (['"""profile_photos"""', 'views.profile_photos'], {'name': '"""profile_photos"""'}), "('profile_photos', views.profile_photos, name='profile_photos')\n", (1276, 1339), False, 'from django.urls import path\n'), ((1349, 1425), 'django.urls.path', 'path', (['"""comment_update/<int:id>"""', 'views.comment_update'], {'name': '"""comment_update"""'}), "('comment_update/<int:id>', views.comment_update, name='comment_update')\n", (1353, 1425), False, 'from django.urls import path\n'), ((1519, 1571), 'django.urls.path', 'path', (['"""delete/<int:id>"""', 'views.delete'], {'name': '"""delete"""'}), "('delete/<int:id>', views.delete, name='delete')\n", (1523, 1571), False, 'from django.urls import path\n'), ((1577, 1629), 'django.urls.path', 'path', (['"""favourite"""', 'views.favourite'], {'name': '"""favourite"""'}), "('favourite', views.favourite, name='favourite')\n", (1581, 1629), False, 'from django.urls import path\n'), ((1634, 1704), 'django.urls.path', 'path', (['"""favourite_posts"""', 'views.favourite_posts'], {'name': '"""favourite_posts"""'}), "('favourite_posts', views.favourite_posts, name='favourite_posts')\n", (1638, 1704), False, 'from django.urls import path\n'), ((1929, 1987), 'django.urls.path', 'path', (['"""video_posts"""', 'views.video_posts'], {'name': '"""video_posts"""'}), "('video_posts', views.video_posts, name='video_posts')\n", (1933, 1987), False, 'from django.urls import path\n'), ((1993, 2051), 'django.urls.path', 'path', (['"""user_videos"""', 'views.user_videos'], {'name': '"""user_videos"""'}), "('user_videos', views.user_videos, name='user_videos')\n", (1997, 2051), False, 'from django.urls import path\n')]