# articles/urls.py
from django.urls import path
from .views import ArticleListView, ArticleUpdateView, ArticleDetailView, ArticleDeleteView, ArticleCreateView

urlpatterns = [
    path('', ArticleListView.as_view(), name='article_list'),
    path('create', ArticleCreateView.as_view(), name="article_create"),
    path('<int:pk>/edit/',ArticleUpdateView.as_view(), name='article_edit'), # new
    path('<int:pk>/',ArticleDetailView.as_view(), name='article_detail'), # new
    path('<int:pk>/delete/',ArticleDeleteView.as_view(), name='article_delete'), # new
]