from django.urls import path
from . import views

urlpatterns = [
    path('', views.ArticleListView.as_view(), name = 'article_list'),
    #Urls for editing and deleting the articles using primary key
    path('new/',views.ArticleCreateView.as_view(), name = 'article_new'),
    path('<int:pk>/edit/', views.ArticleUpdateView.as_view(), name = 'article_edit'),
    path('<int:pk>', views.ArticleDetailView.as_view(), name = 'article_detail'),
    path('<int:pk>/delete/', views.ArticleDeleteView.as_view(), name = 'article_delete'),
]