This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/src/articles/urls.py
2022-09-24 15:30:33 +01:00

16 lines
680 B
Python

from django.urls import path
from articles import views
urlpatterns = [
path("", views.ArticlesListView.as_view(), name="articles-list"),
path("drafts/", views.DraftsListView.as_view(), name="drafts-list"),
path("search/", views.SearchArticlesListView.as_view(), name="search"),
path("tag/<slug:slug>/feed/", views.TagFeed(), name="tag-feed"),
path("tag/<slug:slug>/", views.TagArticlesListView.as_view(), name="tag"),
path("feed/", views.CompleteFeed(), name="complete-feed"),
path(
"api/render/<int:article_pk>/", views.render_article, name="api-render-article"
),
path("<slug:slug>/", views.view_article, name="article-detail"),
]