<reponame>lauriefacer/Facer
from django.urls import path, include
from .views import (PostListView,
                    PostDetailView,
                    PostCreateView,
                    PostUpdateView,
                    PostDeleteView,
                    PostCreateView,
                    UserPostListView
                    )
from . import views

urlpatterns = [
    path('',PostListView.as_view(),name='blog_home'),
    path('user_post/<str:username>/',UserPostListView.as_view(),name='user_posts'),
    path('post/<int:pk>/',PostDetailView.as_view(),name='post_detail'),
    path('post/new/',PostCreateView.as_view(),name='post_create'),
    path('post/<int:pk>/update/', PostUpdateView.as_view(), name='post_update'),
    path('post/<int:pk>/delete',PostDeleteView.as_view(),name='post_delete'),
]

from django.urls import path, include
from .views import (PostListView,
                    PostDetailView,
                    PostCreateView,
                    PostUpdateView,
                    PostDeleteView,
                    PostCreateView,
                    UserPostListView
                    )
from . import views

urlpatterns = [
    path('',PostListView.as_view(),name='blog_home'),
    path('user_post/<str:username>/',UserPostListView.as_view(),name='user_posts'),
    path('post/<int:pk>/',PostDetailView.as_view(),name='post_detail'),
    path('post/new/',PostCreateView.as_view(),name='post_create'),
    path('post/<int:pk>/update/', PostUpdateView.as_view(), name='post_update'),
    path('post/<int:pk>/delete',PostDeleteView.as_view(),name='post_delete'),
]