Coverage for articles/urls.py: 100.00%
4 statements
« prev ^ index » next coverage.py v7.9.1, created at 2025-06-13 16:37 -0700
« prev ^ index » next coverage.py v7.9.1, created at 2025-06-13 16:37 -0700
1from django.urls import path 1a
3from .feeds import LatestArticlesFeed 1a
4from .views import ( 1a
5 article_create,
6 article_delete,
7 article_detail,
8 article_list,
9 article_search,
10 article_share,
11 article_update,
12 comment_add,
13)
15urlpatterns = [ 1a
16 path("", article_list, name="article_list"),
17 path(
18 "<int:year>/<int:month>/<int:day>/<slug:article>/",
19 article_detail,
20 name="article_detail",
21 ),
22 path("new/", article_create, name="article_new"),
23 path("<int:pk>/edit/", article_update, name="article_update"),
24 path("<int:article_id>/share/", article_share, name="article_share"),
25 path("feed/", LatestArticlesFeed(), name="article_feed"),
26 path("search/", article_search, name="article_search"),
27 path("<int:pk>/delete/", article_delete, name="article_delete"),
28 path("<slug:tag_slug>/", article_list, name="article_list_by_tag"),
29 path(
30 "<int:article_id>/comment/add/",
31 comment_add,
32 name="comment_add",
33 ),
34]